Skip to content

Commit

Permalink
some COM methods need to return in an out parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jayrulez committed Aug 30, 2022
1 parent f37df23 commit 3dce7a0
Show file tree
Hide file tree
Showing 42 changed files with 356 additions and 356 deletions.
4 changes: 2 additions & 2 deletions Win32/src/Generated/AI/MachineLearning/DirectML.bf
Original file line number Diff line number Diff line change
Expand Up @@ -2130,11 +2130,11 @@ public struct DML_GRAPH_DESC

[CRepr]public struct VTable : IDMLPageable.VTable
{
protected new function [CallingConvention(.Stdcall)] DML_BINDING_PROPERTIES(SelfOuter* self) GetBindingProperties;
protected new function [CallingConvention(.Stdcall)] void(SelfOuter* self, out DML_BINDING_PROPERTIES @return) GetBindingProperties;
}


public DML_BINDING_PROPERTIES GetBindingProperties() mut => VT.[Friend]GetBindingProperties(&this);
public DML_BINDING_PROPERTIES GetBindingProperties() mut => VT.[Friend]GetBindingProperties(&this, ..?);
}

[CRepr]struct IDMLCompiledOperator : IDMLDispatchable
Expand Down
4 changes: 2 additions & 2 deletions Win32/src/Generated/Data/HtmlHelp.bf
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ public struct COLUMNSTATUS
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, uint32* pdwCodePageID, uint32* plcid) GetLocaleInfo;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, uint32* pdwObjInstance) GetSorterInstance;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, int32* pcEntries) Count;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, in void lpcvPrefix, BOOL fExactMatch, int32* plEntry) Lookup;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, void* lpcvPrefix, BOOL fExactMatch, int32* plEntry) Lookup;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, int32 lEntry, IITResultSet* lpITResult, int32 cEntries) Lookup0;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, int32 lEntry, void* lpvKeyBuf, uint32 cbKeyBuf) Lookup1;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, IITGroup* piitGroup) SetGroup;
Expand All @@ -627,7 +627,7 @@ public struct COLUMNSTATUS

public HRESULT Count(int32* pcEntries) mut => VT.[Friend]Count(&this, pcEntries);

public HRESULT Lookup(in void lpcvPrefix, BOOL fExactMatch, int32* plEntry) mut => VT.[Friend]Lookup(&this, lpcvPrefix, fExactMatch, plEntry);
public HRESULT Lookup(void* lpcvPrefix, BOOL fExactMatch, int32* plEntry) mut => VT.[Friend]Lookup(&this, lpcvPrefix, fExactMatch, plEntry);

public HRESULT Lookup(int32 lEntry, IITResultSet* lpITResult, int32 cEntries) mut => VT.[Friend]Lookup0(&this, lEntry, lpITResult, cEntries);

Expand Down
98 changes: 49 additions & 49 deletions Win32/src/Generated/Devices/AllJoyn.bf

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Win32/src/Generated/Devices/DeviceAndDriverInstallation.bf
Original file line number Diff line number Diff line change
Expand Up @@ -3292,11 +3292,11 @@ public struct SP_INF_SIGNER_INFO_V2_W
public static
{
[Import("SETUPAPI.lib"), CLink, CallingConvention(.Stdcall)]
public static extern BOOL SetupGetInfInformationA(in void InfSpec, uint32 SearchControl, SP_INF_INFORMATION* ReturnBuffer, uint32 ReturnBufferSize, uint32* RequiredSize);
public static BOOL SetupGetInfInformation(in void InfSpec, uint32 SearchControl, SP_INF_INFORMATION* ReturnBuffer, uint32 ReturnBufferSize, uint32* RequiredSize) => SetupGetInfInformationA(InfSpec, SearchControl, ReturnBuffer, ReturnBufferSize, RequiredSize);
public static extern BOOL SetupGetInfInformationA(void* InfSpec, uint32 SearchControl, SP_INF_INFORMATION* ReturnBuffer, uint32 ReturnBufferSize, uint32* RequiredSize);
public static BOOL SetupGetInfInformation(void* InfSpec, uint32 SearchControl, SP_INF_INFORMATION* ReturnBuffer, uint32 ReturnBufferSize, uint32* RequiredSize) => SetupGetInfInformationA(InfSpec, SearchControl, ReturnBuffer, ReturnBufferSize, RequiredSize);

[Import("SETUPAPI.lib"), CLink, CallingConvention(.Stdcall)]
public static extern BOOL SetupGetInfInformationW(in void InfSpec, uint32 SearchControl, SP_INF_INFORMATION* ReturnBuffer, uint32 ReturnBufferSize, uint32* RequiredSize);
public static extern BOOL SetupGetInfInformationW(void* InfSpec, uint32 SearchControl, SP_INF_INFORMATION* ReturnBuffer, uint32 ReturnBufferSize, uint32* RequiredSize);

[Import("SETUPAPI.lib"), CLink, CallingConvention(.Stdcall)]
public static extern BOOL SetupQueryInfFileInformationA(SP_INF_INFORMATION* InfInformation, uint32 InfIndex, uint8* ReturnBuffer, uint32 ReturnBufferSize, uint32* RequiredSize);
Expand Down
2 changes: 1 addition & 1 deletion Win32/src/Generated/Devices/Display.bf
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ public function BOOL FREEOBJPROC(DRIVEROBJ* pDriverObj);

public function void WNDOBJCHANGEPROC(WNDOBJ* pwo, uint32 fl);

public function int32 SORTCOMP(in void pv1, in void pv2);
public function int32 SORTCOMP(void* pv1, void* pv2);

public function BOOL PFN_DrvEnableDriver(uint32 param0, uint32 param1, DRVENABLEDATA* param2);

Expand Down
14 changes: 7 additions & 7 deletions Win32/src/Generated/Devices/Tapi.bf
Original file line number Diff line number Diff line change
Expand Up @@ -6860,13 +6860,13 @@ public static
public static extern int32 lineConfigDialogW(uint32 dwDeviceID, HWND hwndOwner, PWSTR lpszDeviceClass);

[Import("TAPI32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern int32 lineConfigDialogEdit(uint32 dwDeviceID, HWND hwndOwner, PSTR lpszDeviceClass, in void lpDeviceConfigIn, uint32 dwSize, VARSTRING* lpDeviceConfigOut);
public static extern int32 lineConfigDialogEdit(uint32 dwDeviceID, HWND hwndOwner, PSTR lpszDeviceClass, void* lpDeviceConfigIn, uint32 dwSize, VARSTRING* lpDeviceConfigOut);

[Import("TAPI32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern int32 lineConfigDialogEditA(uint32 dwDeviceID, HWND hwndOwner, PSTR lpszDeviceClass, in void lpDeviceConfigIn, uint32 dwSize, VARSTRING* lpDeviceConfigOut);
public static extern int32 lineConfigDialogEditA(uint32 dwDeviceID, HWND hwndOwner, PSTR lpszDeviceClass, void* lpDeviceConfigIn, uint32 dwSize, VARSTRING* lpDeviceConfigOut);

[Import("TAPI32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern int32 lineConfigDialogEditW(uint32 dwDeviceID, HWND hwndOwner, PWSTR lpszDeviceClass, in void lpDeviceConfigIn, uint32 dwSize, VARSTRING* lpDeviceConfigOut);
public static extern int32 lineConfigDialogEditW(uint32 dwDeviceID, HWND hwndOwner, PWSTR lpszDeviceClass, void* lpDeviceConfigIn, uint32 dwSize, VARSTRING* lpDeviceConfigOut);

[Import("TAPI32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern int32 lineConfigProvider(HWND hwndOwner, uint32 dwPermanentProviderID);
Expand Down Expand Up @@ -7301,13 +7301,13 @@ public static
public static extern int32 lineSetCurrentLocation(uint32 hLineApp, uint32 dwLocation);

[Import("TAPI32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern int32 lineSetDevConfig(uint32 dwDeviceID, in void lpDeviceConfig, uint32 dwSize, PSTR lpszDeviceClass);
public static extern int32 lineSetDevConfig(uint32 dwDeviceID, void* lpDeviceConfig, uint32 dwSize, PSTR lpszDeviceClass);

[Import("TAPI32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern int32 lineSetDevConfigA(uint32 dwDeviceID, in void lpDeviceConfig, uint32 dwSize, PSTR lpszDeviceClass);
public static extern int32 lineSetDevConfigA(uint32 dwDeviceID, void* lpDeviceConfig, uint32 dwSize, PSTR lpszDeviceClass);

[Import("TAPI32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern int32 lineSetDevConfigW(uint32 dwDeviceID, in void lpDeviceConfig, uint32 dwSize, PWSTR lpszDeviceClass);
public static extern int32 lineSetDevConfigW(uint32 dwDeviceID, void* lpDeviceConfig, uint32 dwSize, PWSTR lpszDeviceClass);

[Import("TAPI32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern int32 lineSetLineDevStatus(uint32 hLine, uint32 dwStatusToChange, uint32 fStatus);
Expand Down Expand Up @@ -7512,7 +7512,7 @@ public static
public static extern int32 phoneSetButtonInfoW(uint32 hPhone, uint32 dwButtonLampID, PHONEBUTTONINFO* lpButtonInfo);

[Import("TAPI32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern int32 phoneSetData(uint32 hPhone, uint32 dwDataID, in void lpData, uint32 dwSize);
public static extern int32 phoneSetData(uint32 hPhone, uint32 dwDataID, void* lpData, uint32 dwSize);

[Import("TAPI32.lib"), CLink, CallingConvention(.Stdcall)]
public static extern int32 phoneSetDisplay(uint32 hPhone, uint32 dwRow, uint32 dwColumn, PSTR lpsDisplay, uint32 dwSize);
Expand Down
12 changes: 6 additions & 6 deletions Win32/src/Generated/Devices/WebServicesOnDevices.bf
Original file line number Diff line number Diff line change
Expand Up @@ -1273,21 +1273,21 @@ public struct WSD_EVENT

[CRepr]public struct VTable : IUnknown.VTable
{
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, in void pBody, WSD_OPERATION* pOperation) SendOneWayRequest;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, in void pBody, WSD_OPERATION* pOperation, WSD_SYNCHRONOUS_RESPONSE_CONTEXT* pResponseContext) SendTwoWayRequest;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, in void pBody, WSD_OPERATION* pOperation, IUnknown* pAsyncState, IWSDAsyncCallback* pCallback, IWSDAsyncResult** pResult) SendTwoWayRequestAsync;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, void* pBody, WSD_OPERATION* pOperation) SendOneWayRequest;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, void* pBody, WSD_OPERATION* pOperation, WSD_SYNCHRONOUS_RESPONSE_CONTEXT* pResponseContext) SendTwoWayRequest;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, void* pBody, WSD_OPERATION* pOperation, IUnknown* pAsyncState, IWSDAsyncCallback* pCallback, IWSDAsyncResult** pResult) SendTwoWayRequestAsync;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, IWSDAsyncResult* pAsyncResult) AbortAsyncOperation;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, WSD_SOAP_FAULT* pFault) ProcessFault;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, PWSTR* ppszErrorInfo) GetErrorInfo;
protected new function [CallingConvention(.Stdcall)] HRESULT(SelfOuter* self, WSD_SOAP_FAULT** ppFault) GetFaultInfo;
}


public HRESULT SendOneWayRequest(in void pBody, WSD_OPERATION* pOperation) mut => VT.[Friend]SendOneWayRequest(&this, pBody, pOperation);
public HRESULT SendOneWayRequest(void* pBody, WSD_OPERATION* pOperation) mut => VT.[Friend]SendOneWayRequest(&this, pBody, pOperation);

public HRESULT SendTwoWayRequest(in void pBody, WSD_OPERATION* pOperation, WSD_SYNCHRONOUS_RESPONSE_CONTEXT* pResponseContext) mut => VT.[Friend]SendTwoWayRequest(&this, pBody, pOperation, pResponseContext);
public HRESULT SendTwoWayRequest(void* pBody, WSD_OPERATION* pOperation, WSD_SYNCHRONOUS_RESPONSE_CONTEXT* pResponseContext) mut => VT.[Friend]SendTwoWayRequest(&this, pBody, pOperation, pResponseContext);

public HRESULT SendTwoWayRequestAsync(in void pBody, WSD_OPERATION* pOperation, IUnknown* pAsyncState, IWSDAsyncCallback* pCallback, IWSDAsyncResult** pResult) mut => VT.[Friend]SendTwoWayRequestAsync(&this, pBody, pOperation, pAsyncState, pCallback, pResult);
public HRESULT SendTwoWayRequestAsync(void* pBody, WSD_OPERATION* pOperation, IUnknown* pAsyncState, IWSDAsyncCallback* pCallback, IWSDAsyncResult** pResult) mut => VT.[Friend]SendTwoWayRequestAsync(&this, pBody, pOperation, pAsyncState, pCallback, pResult);

public HRESULT AbortAsyncOperation(IWSDAsyncResult* pAsyncResult) mut => VT.[Friend]AbortAsyncOperation(&this, pAsyncResult);

Expand Down
Loading

0 comments on commit 3dce7a0

Please sign in to comment.