Commit bf611955 authored by Alexandre Julliard's avatar Alexandre Julliard

include: Remove CONST from non-pointer parameters.

parent 11ced88a
...@@ -236,14 +236,14 @@ DECLARE_INTERFACE_(IDirectPlay8Address,IUnknown) ...@@ -236,14 +236,14 @@ DECLARE_INTERFACE_(IDirectPlay8Address,IUnknown)
STDMETHOD(GetURLA)(THIS_ CHAR* pszURL, PDWORD pdwNumChars) PURE; STDMETHOD(GetURLA)(THIS_ CHAR* pszURL, PDWORD pdwNumChars) PURE;
STDMETHOD(GetSP)(THIS_ GUID* pguidSP) PURE; STDMETHOD(GetSP)(THIS_ GUID* pguidSP) PURE;
STDMETHOD(GetUserData)(THIS_ LPVOID pvUserData, PDWORD pdwBufferSize) PURE; STDMETHOD(GetUserData)(THIS_ LPVOID pvUserData, PDWORD pdwBufferSize) PURE;
STDMETHOD(SetSP)(THIS_ CONST GUID* CONST pguidSP) PURE; STDMETHOD(SetSP)(THIS_ const GUID* pguidSP) PURE;
STDMETHOD(SetUserData)(THIS_ CONST void* CONST pvUserData, CONST DWORD dwDataSize) PURE; STDMETHOD(SetUserData)(THIS_ const void* pvUserData, DWORD dwDataSize) PURE;
STDMETHOD(GetNumComponents)(THIS_ PDWORD pdwNumComponents) PURE; STDMETHOD(GetNumComponents)(THIS_ PDWORD pdwNumComponents) PURE;
STDMETHOD(GetComponentByName)(THIS_ CONST WCHAR* CONST pwszName, LPVOID pvBuffer, PDWORD pdwBufferSize, PDWORD pdwDataType) PURE; STDMETHOD(GetComponentByName)(THIS_ const WCHAR* pwszName, LPVOID pvBuffer, PDWORD pdwBufferSize, PDWORD pdwDataType) PURE;
STDMETHOD(GetComponentByIndex)(THIS_ CONST DWORD dwComponentID, WCHAR* pwszName, PDWORD pdwNameLen, void* pvBuffer, PDWORD pdwBufferSize, PDWORD pdwDataType) PURE; STDMETHOD(GetComponentByIndex)(THIS_ DWORD dwComponentID, WCHAR* pwszName, PDWORD pdwNameLen, void* pvBuffer, PDWORD pdwBufferSize, PDWORD pdwDataType) PURE;
STDMETHOD(AddComponent)(THIS_ CONST WCHAR* CONST pwszName, CONST void* CONST lpvData, CONST DWORD dwDataSize, CONST DWORD dwDataType) PURE; STDMETHOD(AddComponent)(THIS_ const WCHAR* pwszName, const void* lpvData, DWORD dwDataSize, DWORD dwDataType) PURE;
STDMETHOD(GetDevice)(THIS_ GUID* pDevGuid) PURE; STDMETHOD(GetDevice)(THIS_ GUID* pDevGuid) PURE;
STDMETHOD(SetDevice)(THIS_ CONST GUID* CONST devGuid) PURE; STDMETHOD(SetDevice)(THIS_ const GUID* devGuid) PURE;
STDMETHOD(BuildFromDirectPlay4Address)(THIS_ LPVOID pvAddress, DWORD dwDataSize) PURE; STDMETHOD(BuildFromDirectPlay4Address)(THIS_ LPVOID pvAddress, DWORD dwDataSize) PURE;
}; };
#undef INTERFACE #undef INTERFACE
...@@ -312,9 +312,9 @@ DECLARE_INTERFACE_(IDirectPlay8AddressIP,IUnknown) ...@@ -312,9 +312,9 @@ DECLARE_INTERFACE_(IDirectPlay8AddressIP,IUnknown)
STDMETHOD_(ULONG,AddRef)(THIS) PURE; STDMETHOD_(ULONG,AddRef)(THIS) PURE;
STDMETHOD_(ULONG,Release)(THIS) PURE; STDMETHOD_(ULONG,Release)(THIS) PURE;
/*** IDirectPlay8AddressIP methods ***/ /*** IDirectPlay8AddressIP methods ***/
STDMETHOD(BuildFromSockAddr)(THIS_ CONST SOCKADDR* CONST pSockAddr) PURE; STDMETHOD(BuildFromSockAddr)(THIS_ const SOCKADDR* pSockAddr) PURE;
STDMETHOD(BuildAddress)(THIS_ CONST WCHAR* CONST wszAddress, CONST USHORT usPort) PURE; STDMETHOD(BuildAddress)(THIS_ const WCHAR* wszAddress, USHORT usPort) PURE;
STDMETHOD(BuildLocalAddress)(THIS_ CONST GUID* CONST pguidAdapter, CONST USHORT usPort) PURE; STDMETHOD(BuildLocalAddress)(THIS_ const GUID* pguidAdapter, USHORT usPort) PURE;
STDMETHOD(GetSockAddress)(THIS_ SOCKADDR* pSockAddr, PDWORD) PURE; STDMETHOD(GetSockAddress)(THIS_ SOCKADDR* pSockAddr, PDWORD) PURE;
STDMETHOD(GetLocalAddress)(THIS_ GUID* pguidAdapter, USHORT* pusPort) PURE; STDMETHOD(GetLocalAddress)(THIS_ GUID* pguidAdapter, USHORT* pusPort) PURE;
STDMETHOD(GetAddress)(THIS_ WCHAR* wszAddress, PDWORD pdwAddressLength, USHORT* psPort) PURE; STDMETHOD(GetAddress)(THIS_ WCHAR* wszAddress, PDWORD pdwAddressLength, USHORT* psPort) PURE;
...@@ -349,7 +349,7 @@ DECLARE_INTERFACE_(IDirectPlay8AddressIP,IUnknown) ...@@ -349,7 +349,7 @@ DECLARE_INTERFACE_(IDirectPlay8AddressIP,IUnknown)
/* Export functions */ /* Export functions */
HRESULT WINAPI DirectPlay8AddressCreate(CONST GUID* pcIID, LPVOID* ppvInterface, IUnknown* pUnknown); HRESULT WINAPI DirectPlay8AddressCreate(const GUID* pcIID, LPVOID* ppvInterface, IUnknown* pUnknown);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
...@@ -151,15 +151,15 @@ DECLARE_INTERFACE_(IDirectPlay8LobbiedApplication,IUnknown) ...@@ -151,15 +151,15 @@ DECLARE_INTERFACE_(IDirectPlay8LobbiedApplication,IUnknown)
STDMETHOD_(ULONG,AddRef)(THIS) PURE; STDMETHOD_(ULONG,AddRef)(THIS) PURE;
STDMETHOD_(ULONG,Release)(THIS) PURE; STDMETHOD_(ULONG,Release)(THIS) PURE;
/*** IDirectPlay8LobbiedApplication methods ***/ /*** IDirectPlay8LobbiedApplication methods ***/
STDMETHOD(Initialize)(THIS_ CONST PVOID pvUserContext, CONST PFNDPNMESSAGEHANDLER pfn, DPNHANDLE* CONST pdpnhConnection, CONST DWORD dwFlags) PURE; STDMETHOD(Initialize)(THIS_ PVOID pvUserContext, PFNDPNMESSAGEHANDLER pfn, DPNHANDLE* pdpnhConnection, DWORD dwFlags) PURE;
STDMETHOD(RegisterProgram)(THIS_ PDPL_PROGRAM_DESC pdplProgramDesc, CONST DWORD dwFlags) PURE; STDMETHOD(RegisterProgram)(THIS_ PDPL_PROGRAM_DESC pdplProgramDesc, DWORD dwFlags) PURE;
STDMETHOD(UnRegisterProgram)(THIS_ GUID* pguidApplication, CONST DWORD dwFlags) PURE; STDMETHOD(UnRegisterProgram)(THIS_ GUID* pguidApplication, DWORD dwFlags) PURE;
STDMETHOD(Send)(THIS_ CONST DPNHANDLE hConnection, BYTE* CONST pBuffer, CONST DWORD pBufferSize, CONST DWORD dwFlags) PURE; STDMETHOD(Send)(THIS_ DPNHANDLE hConnection, BYTE* pBuffer, DWORD pBufferSize, DWORD dwFlags) PURE;
STDMETHOD(SetAppAvailable)(THIS_ CONST BOOL fAvailable, CONST DWORD dwFlags) PURE; STDMETHOD(SetAppAvailable)(THIS_ BOOL fAvailable, DWORD dwFlags) PURE;
STDMETHOD(UpdateStatus)(THIS_ CONST DPNHANDLE hConnection, CONST DWORD dwStatus, CONST DWORD dwFlags) PURE; STDMETHOD(UpdateStatus)(THIS_ DPNHANDLE hConnection, DWORD dwStatus, DWORD dwFlags) PURE;
STDMETHOD(Close)(THIS_ CONST DWORD dwFlags) PURE; STDMETHOD(Close)(THIS_ DWORD dwFlags) PURE;
STDMETHOD(GetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, DWORD* pdwInfoSize, CONST DWORD dwFlags) PURE; STDMETHOD(GetConnectionSettings)(THIS_ DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* pdplSessionInfo, DWORD* pdwInfoSize, DWORD dwFlags) PURE;
STDMETHOD(SetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, CONST DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, CONST DWORD dwFlags) PURE; STDMETHOD(SetConnectionSettings)(THIS_ DPNHANDLE hConnection, const DPL_CONNECTION_SETTINGS* pdplSessionInfo, DWORD dwFlags) PURE;
}; };
#undef INTERFACE #undef INTERFACE
...@@ -206,14 +206,14 @@ DECLARE_INTERFACE_(IDirectPlay8LobbyClient,IUnknown) ...@@ -206,14 +206,14 @@ DECLARE_INTERFACE_(IDirectPlay8LobbyClient,IUnknown)
STDMETHOD_(ULONG,AddRef)(THIS) PURE; STDMETHOD_(ULONG,AddRef)(THIS) PURE;
STDMETHOD_(ULONG,Release)(THIS) PURE; STDMETHOD_(ULONG,Release)(THIS) PURE;
/*** IDirectPlay8LobbyClient methods ***/ /*** IDirectPlay8LobbyClient methods ***/
STDMETHOD(Initialize)(THIS_ CONST PVOID pvUserContext, CONST PFNDPNMESSAGEHANDLER pfn, CONST DWORD dwFlags) PURE; STDMETHOD(Initialize)(THIS_ PVOID pvUserContext, PFNDPNMESSAGEHANDLER pfn, DWORD dwFlags) PURE;
STDMETHOD(EnumLocalPrograms)(THIS_ GUID* CONST pGuidApplication, BYTE* CONST pEnumData, DWORD* CONST pdwEnumData, DWORD* CONST pdwItems, CONST DWORD dwFlags) PURE; STDMETHOD(EnumLocalPrograms)(THIS_ GUID* pGuidApplication, BYTE* pEnumData, DWORD* pdwEnumData, DWORD* pdwItems, DWORD dwFlags) PURE;
STDMETHOD(ConnectApplication)(THIS_ DPL_CONNECT_INFO* CONST pdplConnectionInfo, CONST PVOID pvConnectionContext, DPNHANDLE* CONST hApplication, CONST DWORD dwTimeOut, CONST DWORD dwFlags) PURE; STDMETHOD(ConnectApplication)(THIS_ DPL_CONNECT_INFO* pdplConnectionInfo, PVOID pvConnectionContext, DPNHANDLE* hApplication, DWORD dwTimeOut, DWORD dwFlags) PURE;
STDMETHOD(Send)(THIS_ CONST DPNHANDLE hConnection, BYTE* CONST pBuffer, CONST DWORD pBufferSize, CONST DWORD dwFlags) PURE; STDMETHOD(Send)(THIS_ DPNHANDLE hConnection, BYTE* pBuffer, DWORD pBufferSize, DWORD dwFlags) PURE;
STDMETHOD(ReleaseApplication)(THIS_ CONST DPNHANDLE hConnection, CONST DWORD dwFlags) PURE; STDMETHOD(ReleaseApplication)(THIS_ DPNHANDLE hConnection, DWORD dwFlags) PURE;
STDMETHOD(Close)(THIS_ CONST DWORD dwFlags) PURE; STDMETHOD(Close)(THIS_ DWORD dwFlags) PURE;
STDMETHOD(GetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, DWORD* pdwInfoSize, CONST DWORD dwFlags) PURE; STDMETHOD(GetConnectionSettings)(THIS_ DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* pdplSessionInfo, DWORD* pdwInfoSize, DWORD dwFlags) PURE;
STDMETHOD(SetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, CONST DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, CONST DWORD dwFlags) PURE; STDMETHOD(SetConnectionSettings)(THIS_ DPNHANDLE hConnection, const DPL_CONNECTION_SETTINGS* pdplSessionInfo, DWORD dwFlags) PURE;
}; };
#undef INTERFACE #undef INTERFACE
...@@ -250,7 +250,7 @@ DECLARE_INTERFACE_(IDirectPlay8LobbyClient,IUnknown) ...@@ -250,7 +250,7 @@ DECLARE_INTERFACE_(IDirectPlay8LobbyClient,IUnknown)
/* Export functions */ /* Export functions */
HRESULT WINAPI DirectPlay8LobbyCreate(CONST GUID* pcIID, LPVOID* ppvInterface, IUnknown* pUnknown); HRESULT WINAPI DirectPlay8LobbyCreate(const GUID* pcIID, LPVOID* ppvInterface, IUnknown* pUnknown);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
...@@ -115,56 +115,56 @@ DECLARE_INTERFACE_(IDirectPlayNATHelp,IUnknown) ...@@ -115,56 +115,56 @@ DECLARE_INTERFACE_(IDirectPlayNATHelp,IUnknown)
/*** IDirectPlayNATHelp functions ***/ /*** IDirectPlayNATHelp functions ***/
STDMETHOD(Initialize) (THIS_ STDMETHOD(Initialize) (THIS_
const DWORD dwFlags) PURE; DWORD dwFlags) PURE;
STDMETHOD(Close) (THIS_ STDMETHOD(Close) (THIS_
const DWORD dwFlags) PURE; DWORD dwFlags) PURE;
STDMETHOD(GetCaps) (THIS_ STDMETHOD(GetCaps) (THIS_
const PDPNHCAPS pCaps, PDPNHCAPS pCaps,
const DWORD dwFlags) PURE; DWORD dwFlags) PURE;
STDMETHOD(RegisterPorts) (THIS_ STDMETHOD(RegisterPorts) (THIS_
const PSOCKADDR aLocalAddresses, PSOCKADDR aLocalAddresses,
const DWORD dwAddressSize, DWORD dwAddressSize,
const DWORD dwAddresses, DWORD dwAddresses,
const DWORD dwTime, DWORD dwTime,
const PDPNHHANDLE phRegisteredPorts, PDPNHHANDLE phRegisteredPorts,
const DWORD dwFlags) PURE; DWORD dwFlags) PURE;
STDMETHOD(GetRegisteredAddresses) (THIS_ STDMETHOD(GetRegisteredAddresses) (THIS_
const PDPNHHANDLE hRegisteredPorts, PDPNHHANDLE hRegisteredPorts,
const PSOCKADDR paPublicAddresses, PSOCKADDR paPublicAddresses,
const DWORD *dwAddressSize, const DWORD *dwAddressSize,
const DWORD *dwAddressFlags, const DWORD *dwAddressFlags,
const DWORD *dwRemaining, const DWORD *dwRemaining,
const DWORD dwFlags) PURE; DWORD dwFlags) PURE;
STDMETHOD(DeregisterPorts)(THIS_ STDMETHOD(DeregisterPorts)(THIS_
const DPNHHANDLE hRegPorts, DPNHHANDLE hRegPorts,
const DWORD dwFlags) PURE; DWORD dwFlags) PURE;
STDMETHOD(QueryAddress) (THIS_ STDMETHOD(QueryAddress) (THIS_
const PSOCKADDR pSource, PSOCKADDR pSource,
const PSOCKADDR pQuery, PSOCKADDR pQuery,
const PSOCKADDR pResponse, PSOCKADDR pResponse,
const INT iAddresses, INT iAddresses,
const DWORD dwFlags) PURE; DWORD dwFlags) PURE;
STDMETHOD(SetAlertEvent) (THIS_ STDMETHOD(SetAlertEvent) (THIS_
const HANDLE hEvent, HANDLE hEvent,
const DWORD dwFlags) PURE; DWORD dwFlags) PURE;
STDMETHOD(SetAlertIOCompletionPort)(THIS_ STDMETHOD(SetAlertIOCompletionPort)(THIS_
const HANDLE hIOCompletionPort, HANDLE hIOCompletionPort,
const DWORD dwCompletion, DWORD dwCompletion,
const DWORD dwMaxThreads, DWORD dwMaxThreads,
const DWORD dwFlags) PURE; DWORD dwFlags) PURE;
STDMETHOD(ExtendRegisteredPortsLease)(THIS_ STDMETHOD(ExtendRegisteredPortsLease)(THIS_
const DPNHHANDLE hRegisteredPorts, DPNHHANDLE hRegisteredPorts,
const DWORD dwLeaseTime, DWORD dwLeaseTime,
const DWORD dwFlags) PURE; DWORD dwFlags) PURE;
}; };
#undef INTERFACE #undef INTERFACE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment