Commit 4b340fff authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

includes: Make headers C++ compatible.

parent 74b240bf
...@@ -39,7 +39,16 @@ typedef struct _MANAGEDAPPLICATION ...@@ -39,7 +39,16 @@ typedef struct _MANAGEDAPPLICATION
BOOL bInstalled; BOOL bInstalled;
} MANAGEDAPPLICATION, *PMANAGEDAPPLICATION; } MANAGEDAPPLICATION, *PMANAGEDAPPLICATION;
#ifdef __cplusplus
extern "C" {
#endif
DWORD WINAPI CommandLineFromMsiDescriptor(WCHAR*,WCHAR*,DWORD*); DWORD WINAPI CommandLineFromMsiDescriptor(WCHAR*,WCHAR*,DWORD*);
DWORD WINAPI GetManagedApplications(GUID*,DWORD,DWORD,LPDWORD,PMANAGEDAPPLICATION*); DWORD WINAPI GetManagedApplications(GUID*,DWORD,DWORD,LPDWORD,PMANAGEDAPPLICATION*);
#ifdef __cplusplus
}
#endif
#endif /* _APPMGMT_H */ #endif /* _APPMGMT_H */
...@@ -27,8 +27,17 @@ typedef DWORD CONFIGRET; ...@@ -27,8 +27,17 @@ typedef DWORD CONFIGRET;
#define MAX_GUID_STRING_LEN 39 #define MAX_GUID_STRING_LEN 39
#define MAX_PROFILE_LEN 80 #define MAX_PROFILE_LEN 80
#ifdef __cplusplus
extern "C" {
#endif
CONFIGRET WINAPI CM_Get_Device_ID_ListA( PCSTR, PCHAR, ULONG, ULONG ); CONFIGRET WINAPI CM_Get_Device_ID_ListA( PCSTR, PCHAR, ULONG, ULONG );
CONFIGRET WINAPI CM_Get_Device_ID_ListW( PCWSTR, PWCHAR, ULONG, ULONG ); CONFIGRET WINAPI CM_Get_Device_ID_ListW( PCWSTR, PWCHAR, ULONG, ULONG );
#define CM_Get_Device_ID_List WINELIB_NAME_AW(CM_Get_Device_ID_List) #define CM_Get_Device_ID_List WINELIB_NAME_AW(CM_Get_Device_ID_List)
#ifdef __cplusplus
}
#endif
#endif /* _CFGMGR32_H_ */ #endif /* _CFGMGR32_H_ */
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
#include <guiddef.h> #include <guiddef.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef ULONG64 TRACEHANDLE, *PTRACEHANDLE; typedef ULONG64 TRACEHANDLE, *PTRACEHANDLE;
struct _EVENT_TRACE_LOGFILEA; struct _EVENT_TRACE_LOGFILEA;
...@@ -178,4 +182,8 @@ ULONG WINAPI RegisterTraceGuidsA(WMIDPREQUEST,PVOID,LPCGUID,ULONG,PTRACE_GUID_RE ...@@ -178,4 +182,8 @@ ULONG WINAPI RegisterTraceGuidsA(WMIDPREQUEST,PVOID,LPCGUID,ULONG,PTRACE_GUID_RE
ULONG WINAPI RegisterTraceGuidsW(WMIDPREQUEST,PVOID,LPCGUID,ULONG,PTRACE_GUID_REGISTRATION,LPCWSTR,LPCWSTR,PTRACEHANDLE); ULONG WINAPI RegisterTraceGuidsW(WMIDPREQUEST,PVOID,LPCGUID,ULONG,PTRACE_GUID_REGISTRATION,LPCWSTR,LPCWSTR,PTRACEHANDLE);
#define RegisterTraceGuids WINELIB_NAME_AW(RegisterTraceGuids) #define RegisterTraceGuids WINELIB_NAME_AW(RegisterTraceGuids)
#ifdef __cplusplus
}
#endif
#endif /* _EVNTRACE_ */ #endif /* _EVNTRACE_ */
...@@ -21,6 +21,11 @@ ...@@ -21,6 +21,11 @@
#ifndef __WINE_ICMPAPI_H #ifndef __WINE_ICMPAPI_H
#define __WINE_ICMPAPI_H #define __WINE_ICMPAPI_H
#ifdef __cplusplus
extern "C" {
#endif
HANDLE WINAPI IcmpCreateFile( HANDLE WINAPI IcmpCreateFile(
VOID VOID
); );
...@@ -41,4 +46,8 @@ DWORD WINAPI IcmpSendEcho( ...@@ -41,4 +46,8 @@ DWORD WINAPI IcmpSendEcho(
); );
#ifdef __cplusplus
}
#endif
#endif /* __WINE_ICMPAPI_H */ #endif /* __WINE_ICMPAPI_H */
...@@ -142,6 +142,11 @@ typedef enum tagMSIDBSTATE ...@@ -142,6 +142,11 @@ typedef enum tagMSIDBSTATE
MSIDBSTATE_WRITE = 1 MSIDBSTATE_WRITE = 1
} MSIDBSTATE; } MSIDBSTATE;
#ifdef __cplusplus
extern "C" {
#endif
/* view manipulation */ /* view manipulation */
UINT WINAPI MsiViewFetch(MSIHANDLE,MSIHANDLE*); UINT WINAPI MsiViewFetch(MSIHANDLE,MSIHANDLE*);
UINT WINAPI MsiViewExecute(MSIHANDLE,MSIHANDLE); UINT WINAPI MsiViewExecute(MSIHANDLE,MSIHANDLE);
...@@ -307,4 +312,8 @@ UINT WINAPI MsiSetInstallLevel(MSIHANDLE, int); ...@@ -307,4 +312,8 @@ UINT WINAPI MsiSetInstallLevel(MSIHANDLE, int);
MSIHANDLE WINAPI MsiGetLastErrorRecord(void); MSIHANDLE WINAPI MsiGetLastErrorRecord(void);
#ifdef __cplusplus
}
#endif
#endif /* __WINE_MSIQUERY_H */ #endif /* __WINE_MSIQUERY_H */
...@@ -109,6 +109,11 @@ typedef struct _POWER_POLICY { ...@@ -109,6 +109,11 @@ typedef struct _POWER_POLICY {
} POWER_POLICY, } POWER_POLICY,
*PPOWER_POLICY; *PPOWER_POLICY;
#ifdef __cplusplus
extern "C" {
#endif
typedef BOOLEAN (CALLBACK* PWRSCHEMESENUMPROC)(UINT, DWORD, LPWSTR, DWORD, LPWSTR, PPOWER_POLICY, LPARAM); typedef BOOLEAN (CALLBACK* PWRSCHEMESENUMPROC)(UINT, DWORD, LPWSTR, DWORD, LPWSTR, PPOWER_POLICY, LPARAM);
NTSTATUS WINAPI CallNtPowerInformation(POWER_INFORMATION_LEVEL, PVOID, ULONG, PVOID, ULONG); NTSTATUS WINAPI CallNtPowerInformation(POWER_INFORMATION_LEVEL, PVOID, ULONG, PVOID, ULONG);
...@@ -132,4 +137,8 @@ BOOLEAN WINAPI WriteGlobalPwrPolicy(PGLOBAL_POWER_POLICY); ...@@ -132,4 +137,8 @@ BOOLEAN WINAPI WriteGlobalPwrPolicy(PGLOBAL_POWER_POLICY);
BOOLEAN WINAPI WriteProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY); BOOLEAN WINAPI WriteProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY);
BOOLEAN WINAPI WritePwrScheme(PUINT, LPWSTR, LPWSTR, PPOWER_POLICY); BOOLEAN WINAPI WritePwrScheme(PUINT, LPWSTR, LPWSTR, PPOWER_POLICY);
#ifdef __cplusplus
}
#endif
#endif /* _POWRPROF_H */ #endif /* _POWRPROF_H */
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
#ifndef __WINE_RPCDCEP_H #ifndef __WINE_RPCDCEP_H
#define __WINE_RPCDCEP_H #define __WINE_RPCDCEP_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _RPC_VERSION { typedef struct _RPC_VERSION {
unsigned short MajorVersion; unsigned short MajorVersion;
unsigned short MinorVersion; unsigned short MinorVersion;
...@@ -182,4 +186,8 @@ RPCRTAPI UINT RPC_ENTRY ...@@ -182,4 +186,8 @@ RPCRTAPI UINT RPC_ENTRY
#endif #endif
#ifdef __cplusplus
}
#endif
#endif /*__WINE_RPCDCEP_H */ #endif /*__WINE_RPCDCEP_H */
...@@ -33,6 +33,10 @@ ...@@ -33,6 +33,10 @@
#include <rpc.h> #include <rpc.h>
#include <rpcndr.h> #include <rpcndr.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct tagCInterfaceStubVtbl *PCInterfaceStubVtblList; typedef struct tagCInterfaceStubVtbl *PCInterfaceStubVtblList;
typedef struct tagCInterfaceProxyVtbl *PCInterfaceProxyVtblList; typedef struct tagCInterfaceProxyVtbl *PCInterfaceProxyVtblList;
typedef const char *PCInterfaceName; typedef const char *PCInterfaceName;
...@@ -357,4 +361,8 @@ RPCRTAPI HRESULT RPC_ENTRY ...@@ -357,4 +361,8 @@ RPCRTAPI HRESULT RPC_ENTRY
#endif #endif
#ifdef __cplusplus
}
#endif
#endif /*__WINE_RPCDCE_H */ #endif /*__WINE_RPCDCE_H */
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
#include <commctrl.h> #include <commctrl.h>
#ifdef __cplusplus
extern "C" {
#endif
/* setupapi doesn't use the normal convention, it adds an underscore before A/W */ /* setupapi doesn't use the normal convention, it adds an underscore before A/W */
#ifdef __WINESRC__ #ifdef __WINESRC__
# define DECL_WINELIB_SETUPAPI_TYPE_AW(type) /* nothing */ # define DECL_WINELIB_SETUPAPI_TYPE_AW(type) /* nothing */
...@@ -1818,6 +1822,10 @@ PSTR WINAPI UnicodeToMultiByte(PCWSTR lpUnicodeStr, UINT uCodePage); ...@@ -1818,6 +1822,10 @@ PSTR WINAPI UnicodeToMultiByte(PCWSTR lpUnicodeStr, UINT uCodePage);
BOOL WINAPI UnmapAndCloseFile(HANDLE, HANDLE, PVOID); BOOL WINAPI UnmapAndCloseFile(HANDLE, HANDLE, PVOID);
#ifdef __cplusplus
}
#endif
#undef DECL_WINELIB_SETUPAPI_TYPE_AW #undef DECL_WINELIB_SETUPAPI_TYPE_AW
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#ifndef _WINNETWK_H_ #ifndef _WINNETWK_H_
#define _WINNETWK_H_ #define _WINNETWK_H_
#ifdef __cplusplus
extern "C" {
#endif
/* /*
* Network types * Network types
*/ */
...@@ -401,5 +405,8 @@ UINT WINAPI WNetEnumCachedPasswords( LPSTR, WORD, BYTE, ENUMPASSWORDPROC, DWORD) ...@@ -401,5 +405,8 @@ UINT WINAPI WNetEnumCachedPasswords( LPSTR, WORD, BYTE, ENUMPASSWORDPROC, DWORD)
DWORD WINAPI WNetGetCachedPassword( LPSTR, WORD, LPSTR, LPWORD, BYTE ); DWORD WINAPI WNetGetCachedPassword( LPSTR, WORD, LPSTR, LPWORD, BYTE );
DWORD WINAPI WNetCachePassword( LPSTR, WORD, LPSTR, WORD, BYTE, WORD ); DWORD WINAPI WNetCachePassword( LPSTR, WORD, LPSTR, WORD, BYTE, WORD );
#ifdef __cplusplus
}
#endif
#endif /* _WINNETWK_H_ */ #endif /* _WINNETWK_H_ */
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