* include/lm.h (_mingw.h): Include.
* include/lmaccess.h: Ditto.
* include/lmalert.h: Ditto.
* include/lmapibuf.h: Ditto.
* include/lmat.h: Ditto.
* include/lmaudit.h: Ditto.
* include/lmbrowsr.h: Ditto.
* include/lmchdev.h: Ditto.
* include/lmconfig.h: Ditto.
* include/lmerr.h: Ditto.
* include/lmerrlog.h: Ditto.
* include/lmmsg.h: Ditto.
* include/lmremutl.h: Ditto.
* include/lmrepl.h: Ditto.
* include/lmserver.h: Ditto.
* include/lmshare.h: Ditto.
* include/lmsname.h: Ditto.
* include/lmstats.h: Ditto.
* include/lmsvc.h: Ditto.
* include/lmuse.h: Ditto.
* include/lmuseflg.h: Ditto.
* include/lmwksta.h: Ditto.
* include/mapi.h: Ditto.
* include/mbctype.h: Ditto.
* include/mbstring.h: Ditto.
* include/mciavi.h: Ditto.
* include/mcx.h: Ditto.
* include/mem.h: Ditto.
* include/memory.h: Ditto.
* include/mgmtapi.h: Ditto.
* include/mlang.h: Ditto.
* include/mmreg.h: Ditto.
* include/mpegtype.h: Ditto.
* include/mgm.h (_mingw.h): Include.
(_WIN32_WINNT): Use MACRO constant for comparison instead of integer
and move filters to the end of the file.
* include/mprapi.h: Ditto.
* include/locale.h (_mingw.h): Remove comment and move to top of file.
* include/malloc.h (_mingw.h): Remove comment and move to top of file.
(__MSVCRT_VERSION__): Remove as unneeded.
* include/math.h (_mingw.h): Remove comment and move to top of file.
(__MSVCRT_VERSION__): Remove as unneeded.
(__GNUC__): Assume we are using a version >= 3.4.5
* include/lzexpand.h (_mingw.h): Include.
(UNICODE): Use __AW() macro for mapping non-specific symbols.
* include/lmcons.h (_mingw.h): Include.
(LMSTR): Correct filter for definition determination.
(LMCSTR): Ditto.
* include/mmsystem.h (_mingw.h): Include.
(UNICODE): Use __AW() macro for mapping non-specific symbols.
(WINVER): Use _WIN32_WINNT instead.
(_WIN32_WINNT): Use MACRO constant for comparison instead of integer
and move filters to the end of the file.
* include/_mingw.h (FORCE_UNICODE): Another filter for determining
UNICODE for __AW and __STR.
* TODO: New file.
Redo the filters based on assumptions discussed in mingw-dvlpr list.
+ * include/lm.h (_mingw.h): Include.
+ * include/lmaccess.h: Ditto.
+ * include/lmalert.h: Ditto.
+ * include/lmapibuf.h: Ditto.
+ * include/lmat.h: Ditto.
+ * include/lmaudit.h: Ditto.
+ * include/lmbrowsr.h: Ditto.
+ * include/lmchdev.h: Ditto.
+ * include/lmconfig.h: Ditto.
+ * include/lmerr.h: Ditto.
+ * include/lmerrlog.h: Ditto.
+ * include/lmmsg.h: Ditto.
+ * include/lmremutl.h: Ditto.
+ * include/lmrepl.h: Ditto.
+ * include/lmserver.h: Ditto.
+ * include/lmshare.h: Ditto.
+ * include/lmsname.h: Ditto.
+ * include/lmstats.h: Ditto.
+ * include/lmsvc.h: Ditto.
+ * include/lmuse.h: Ditto.
+ * include/lmuseflg.h: Ditto.
+ * include/lmwksta.h: Ditto.
+ * include/mapi.h: Ditto.
+ * include/mbctype.h: Ditto.
+ * include/mbstring.h: Ditto.
+ * include/mciavi.h: Ditto.
+ * include/mcx.h: Ditto.
+ * include/mem.h: Ditto.
+ * include/memory.h: Ditto.
+ * include/mgmtapi.h: Ditto.
+ * include/mlang.h: Ditto.
+ * include/mmreg.h: Ditto.
+ * include/mpegtype.h: Ditto.
+
+ * include/mgm.h (_mingw.h): Include.
+ (_WIN32_WINNT): Use MACRO constant for comparison instead of integer
+ and move filters to the end of the file.
+ * include/mprapi.h: Ditto.
+
+ * include/locale.h (_mingw.h): Remove comment and move to top of file.
+
+ * include/malloc.h (_mingw.h): Remove comment and move to top of file.
+ (__MSVCRT_VERSION__): Remove as unneeded.
+
+ * include/math.h (_mingw.h): Remove comment and move to top of file.
+ (__MSVCRT_VERSION__): Remove as unneeded.
+ (__GNUC__): Assume we are using a version >= 3.4.5
+
+ * include/lzexpand.h (_mingw.h): Include.
+ (UNICODE): Use __AW() macro for mapping non-specific symbols.
+
+ * include/lmcons.h (_mingw.h): Include.
+ (LMSTR): Correct filter for definition determination.
+ (LMCSTR): Ditto.
+
+ * include/mmsystem.h (_mingw.h): Include.
+ (UNICODE): Use __AW() macro for mapping non-specific symbols.
+ (WINVER): Use _WIN32_WINNT instead.
+ (_WIN32_WINNT): Use MACRO constant for comparison instead of integer
+ and move filters to the end of the file.
+
+ * include/_mingw.h (FORCE_UNICODE): Another filter for determining
+ UNICODE for __AW and __STR.
+
+ * TODO: New file.
+
+2012-09-11 Earnie Boyd <earnie@users.sourceforge.net>
+
+ Redo the filters based on assumptions discussed in mingw-dvlpr list.
+
* include/icm.h (_mingw.h): Include.
(_WIN32_WINNT): Use MACRO constant for comparison instead of integer
and move filters to the end of the file.
--- /dev/null
+* Review the following headers:
+** io.h
+** limits.h
+** lmaccess.h
+** lmremutl.h
+** lmstats.h - What is LM20_WORKSTATION_STATISTICS?
+** malloc.h - What about calloc, free, malloc, realloc and _recalloc?
+** math.h - Commented out code.
* the symbol passed and concantenating either A or W to the symbol.
*/
#define __AW__(AW, AW_) AW ## AW_
-#if (defined(UNICODE) || defined(_UNICODE))
+#if (defined(UNICODE) || defined(_UNICODE) || defined(FORCE_UNICODE))
#define __AW(AW) __AW__(AW, W)
#define __STR(AW) __AW__(L, AW)
#else
#ifndef _LM_H
#define _LM_H
#pragma GCC system_header
+#include <_mingw.h>
#include <lmcons.h>
#include <lmaccess.h>
#ifndef _LMACCESS_H
#define _LMACCESS_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#ifndef _LMALERT_H
#define _LMALERT_H
#pragma GCC system_header
+#include <_mingw.h>
#define ALERTER_MAILSLOT TEXT("\\\\.\\MAILSLOT\\Alerter")
#define ALERT_PRINT_EVENT TEXT("PRINTING")
#define PRJOB_QS_PAUSED 1
#define PRJOB_QS_SPOOLING 2
#define PRJOB_QS_PRINTING 3
+
#ifdef __cplusplus
extern "C" {
#endif
+
typedef struct _ADMIN_OTHER_INFO {
DWORD alrtad_errcode;
DWORD alrtad_numstrings;
}USER_OTHER_INFO,*PUSER_OTHER_INFO,*LPUSER_OTHER_INFO;
NET_API_STATUS WINAPI NetAlertRaise(LPCWSTR,PVOID,DWORD);
NET_API_STATUS WINAPI NetAlertRaiseEx(LPCWSTR,PVOID,DWORD,LPCWSTR);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMAPIBUF_H
#define _LMAPIBUF_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
NET_API_STATUS WINAPI NetApiBufferAllocate(DWORD,PVOID*);
NET_API_STATUS WINAPI NetApiBufferFree(PVOID);
NET_API_STATUS WINAPI NetApiBufferReallocate(PVOID,DWORD,PVOID*);
NET_API_STATUS WINAPI NetApiBufferSize(PVOID,PDWORD);
NET_API_STATUS WINAPI NetapipBufferAllocate(DWORD,PVOID*);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMAT_H
#define _LMAT_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define JOB_RUN_PERIODICALLY 1
#define JOB_EXEC_ERROR 2
#define JOB_RUNS_TODAY 4
NET_API_STATUS WINAPI NetScheduleJobDel(LPWSTR,DWORD,DWORD);
NET_API_STATUS WINAPI NetScheduleJobEnum(LPWSTR,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
NET_API_STATUS WINAPI NetScheduleJobGetInfo(LPWSTR,DWORD,PBYTE*);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMAUDIT_H
#define _LMAUDIT_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define REVISED_AUDIT_ENTRY_STRUCT
#define LOGFLAGS_FORWARD 0
#define LOGFLAGS_BACKWARD 1
#define AE_SRVPAUSED 1
#define AE_SRVCONT 2
#define AE_SRVSTOP 3
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMBROWSR_H
#define _LMBROWSR_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define BROWSER_ROLE_PDC 1
#define BROWSER_ROLE_BDC 2
typedef struct _BROWSER_STATISTICS {
NET_API_STATUS I_BrowserResetStatistics(LPCWSTR);
WORD I_BrowserServerEnumForXactsrv(LPCWSTR,LPCWSTR,ULONG,USHORT,PVOID,WORD,DWORD,PDWORD,PDWORD,DWORD,LPCWSTR,LPCWSTR,PWORD);
NET_API_STATUS I_BrowserDebugTrace(PWCHAR,PCHAR);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMCHDEV_H
#define _LMCHDEV_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define CHARDEVQ_NO_REQUESTS (-1)
#define CHARDEV_CLOSE 0
#define CHARDEVQ_MAX_PRIORITY 1
NET_API_STATUS WINAPI NetCharDevQPurgeSelf(LPCWSTR,LPCWSTR,LPCWSTR);
NET_API_STATUS WINAPI NetHandleGetInfo(HANDLE,DWORD,PBYTE*);
NET_API_STATUS WINAPI NetHandleSetInfo(HANDLE,DWORD,PBYTE,DWORD,PDWORD);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMCONFIG_H
#define _LMCONFIG_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define REVISED_CONFIG_APIS
typedef struct _CONFIG_INFO_0 {
LPWSTR cfgi0_key;
NET_API_STATUS WINAPI NetConfigGet(LPCWSTR,LPCWSTR,LPCWSTR,PBYTE*);
NET_API_STATUS WINAPI NetConfigGetAll(LPCWSTR,LPCWSTR,PBYTE*);
NET_API_STATUS WINAPI NetConfigSet(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,DWORD,PBYTE,DWORD);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMCONS_H
#define _LMCONS_H
#pragma GCC system_header
+#include <_mingw.h>
#define MESSAGE_FILENAME TEXT("NETMSG")
#define OS2MSG_FILENAME TEXT("BASE")
#define PLATFORM_ID_OSF 600
#define PLATFORM_ID_VMS 700
/* new typedef in W2K */
-#if defined( _WIN32_WINNT ) || defined( WINNT ) || defined( FORCE_UNICODE )
+#if defined(_WIN32_WINNT >= _WIN32_WINNT_WIN2K) || defined(FORCE_UNICODE)
#define LMSTR LPWSTR
#define LMCSTR LPCWSTR
#else
#ifndef _LMERR_H
#define _LMERR_H
#pragma GCC system_header
+#include <_mingw.h>
#include <winerror.h>
#define NERR_Success 0
#ifndef _LMERRLOG_H
#define _LMERRLOG_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define ERRLOG_BASE 3100
#define ERRLOG2_BASE 5700
#define LOGFLAGS_FORWARD 0
NET_API_STATUS WINAPI NetErrorLogClear(LPCWSTR,LPCWSTR,LPBYTE);
NET_API_STATUS WINAPI NetErrorLogRead(LPCWSTR,LPWSTR,LPHLOG,DWORD,LPDWORD,DWORD,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD);
NET_API_STATUS WINAPI NetErrorLogWrite(LPBYTE,DWORD,LPCWSTR,LPBYTE,DWORD,LPBYTE,DWORD,LPBYTE);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMMSG_H
#define _LMMSG_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define MSGNAME_NOT_FORWARDED 0
#define MSGNAME_FORWARDED_TO 4
#define MSGNAME_FORWARDED_FROM 16
NET_API_STATUS WINAPI NetMessageNameDel(LPCWSTR,LPCWSTR);
NET_API_STATUS WINAPI NetMessageNameEnum(LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
NET_API_STATUS WINAPI NetMessageNameGetInfo(LPCWSTR,LPCWSTR,DWORD,PBYTE*);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMREMUTL_H
#define _LMREMUTL_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define SUPPORTS_REMOTE_ADMIN_PROTOCOL 2
#define SUPPORTS_RPC 4
#define SUPPORTS_SAM_PROTOCOL 8
NET_API_STATUS WINAPI NetRemoteTOD(LPCWSTR,PBYTE*);
NET_API_STATUS WINAPI NetRemoteComputerSupports(LPCWSTR,DWORD,PDWORD);
NET_API_STATUS RxRemoteApi(DWORD,LPCWSTR,LPDESC,LPDESC,LPDESC,LPDESC,LPDESC,LPDESC,LPDESC,DWORD,... );
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMREPL_H
#define _LMREPL_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define REPL_ROLE_EXPORT 1
#define REPL_ROLE_IMPORT 2
#define REPL_ROLE_BOTH 3
NET_API_STATUS WINAPI NetReplImportDirGetInfo(LPCWSTR,LPCWSTR,DWORD,PBYTE*);
NET_API_STATUS WINAPI NetReplImportDirLock(LPCWSTR,LPCWSTR);
NET_API_STATUS WINAPI NetReplImportDirUnlock(LPCWSTR,LPCWSTR,DWORD);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMSERVER_H
#define _LMSERVER_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#include <winsvc.h>
#include <lmcons.h>
typedef struct _SERVER_INFO_100 {
#define SV_MAXPAGEDPOOLCHUNKSIZE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+SV_MAXPAGEDPOOLCHUNKSIZE_PARMNUM)
#define SV_SENDSFROMPREFERREDPROCESSOR_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+SV_SENDSFROMPREFERREDPROCESSOR_PARMNUM)
#define SV_MAXTHREADSPERQUEUE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+SV_MAXTHREADSPERQUEUE_PARMNUM)
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMSHARE_H
#define _LMSHARE_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#include <lmcons.h>
#define SHARE_NETNAME_PARMNUM 1
#define SHARE_TYPE_PARMNUM 3
NET_API_STATUS WINAPI NetFileClose(LPWSTR,DWORD);
NET_API_STATUS WINAPI NetFileEnum(LPWSTR,LPWSTR,LPWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
NET_API_STATUS WINAPI NetFileGetInfo(LPWSTR,DWORD,DWORD,PBYTE*);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMSNAME_H
#define _LMSNAME_H
#pragma GCC system_header
+#include <_mingw.h>
#define SERVICE_WORKSTATION TEXT("LanmanWorkstation")
#define SERVICE_LM20_WORKSTATION TEXT("WORKSTATION")
#define SERVICE_LM20_NWSAP SERVICE_NWSAP
#define NWSAP_DISPLAY_NAME TEXT("NW Sap Agent")
#define SERVICE_NWCS TEXT("NWCWorkstation")
+
#endif
#ifndef _LMSTATS_H
#define _LMSTATS_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define STATSOPT_CLR 1
#define STATS_NO_VALUE ((ULONG)-1)
#define STATS_OVERFLOW ((ULONG)-2)
#endif
NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR,LPWSTR,DWORD,DWORD,PBYTE*);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMSVC_H
#define _LMSVC_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#include <lmsname.h>
#define SERVICE_DOS_ENCRYPTION TEXT("ENCRYPT")
#define SERVICE_UNINSTALLED 0
#define SERVICE_UIC_CODE(c,m) ((long)(((long)c<<16)|(long)(USHORT)m))
#define SERVICE_NT_CCP_CODE(t,n) (((long)SERVICE_CCP_QUERY_HINT)|((long)(n))|(((t)&LOWER_HINT_MASK)<<SERVICE_IP_WAITTIME_SHIFT)|(((t)&UPPER_HINT_MASK)<<SERVICE_NTIP_WAITTIME_SHIFT))
#define SERVICE_NT_WAIT_GET(c) ((((c)&UPPER_GET_HINT_MASK)>>SERVICE_NTIP_WAITTIME_SHIFT)|(((c)&LOWER_GET_HINT_MASK)>>SERVICE_IP_WAITTIME_SHIFT))
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMUSE_H
#define _LMUSE_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#include <lmuseflg.h>
#define USE_LOCAL_PARMNUM 1
#define USE_REMOTE_PARMNUM 2
NET_API_STATUS WINAPI NetUseDel(LPWSTR,LPWSTR,DWORD);
NET_API_STATUS WINAPI NetUseEnum(LPWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
NET_API_STATUS WINAPI NetUseGetInfo(LPWSTR,LPWSTR,DWORD,PBYTE*);
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LMUSEFLG_H
#define _LMUSEFLG_H
#pragma GCC system_header
+#include <_mingw.h>
#define USE_NOFORCE 0
#define USE_FORCE 1
#define USE_LOTS_OF_FORCE 2
+
#endif
#ifndef _LMWKSTA_H
#define _LMWKSTA_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#include <lmuseflg.h>
#define WKSTA_PLATFORM_ID_PARMNUM 100
#define WKSTA_COMPUTERNAME_PARMNUM 1
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _LOCALE_H
#define _LOCALE_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* Functions and types for localization (ie. changing the appearance of
* output based on the standards of a certain country).
*/
-/* All the headers include this file. */
-#include <_mingw.h>
-
/*
* NOTE: I have tried to test this, but I am limited by my knowledge of
* locale issues. The structure does not bomb if you look at the
#ifndef _LZEXPAND_H
#define _LZEXPAND_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define LZERROR_BADINHANDLE (-1)
#define LZERROR_BADOUTHANDLE (-2)
#define LZERROR_READ (-3)
INT WINAPI LZRead(INT,LPSTR,INT);
LONG WINAPI LZSeek(INT,LONG,INT);
INT WINAPI LZStart(VOID);
-#ifdef UNICODE
-#define GetExpandedName GetExpandedNameW
-#define LZOpenFile LZOpenFileW
-#else
-#define GetExpandedName GetExpandedNameA
-#define LZOpenFile LZOpenFileA
-#endif
+#define GetExpandedName __AW(GetExpandedName)
+#define LZOpenFile __AW(LZOpenFile)
+
#ifdef __cplusplus
}
+
#endif
#endif
#ifndef _MALLOC_H
#define _MALLOC_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* Support for programs which want to use malloc.h to get memory management
* instead.
*/
-/* All the headers include this file. */
-#include <_mingw.h>
-
#include <stdlib.h>
#ifndef RC_INVOKED
but not W9x. On latter, they always set errno to ENOSYS.
*/
_CRTIMP int __cdecl __MINGW_NOTHROW _heapwalk (_HEAPINFO*);
-#ifdef __GNUC__
#define _alloca(x) __builtin_alloca((x))
-#endif
#ifndef _NO_OLDNAMES
_CRTIMP int __cdecl __MINGW_NOTHROW heapwalk (_HEAPINFO*);
-#ifdef __GNUC__
#define alloca(x) __builtin_alloca((x))
-#endif
#endif /* Not _NO_OLDNAMES */
_CRTIMP int __cdecl __MINGW_NOTHROW _heapchk (void); /* Verify heap integrety. */
_CRTIMP int __cdecl __MINGW_NOTHROW _set_sbh_threshold (size_t);
_CRTIMP void* __cdecl __MINGW_NOTHROW _expand (void*, size_t);
-/* These require msvcr70.dll or higher. */
-#if __MSVCRT_VERSION__ >= 0x0700
_CRTIMP void * __cdecl __MINGW_NOTHROW _aligned_offset_malloc(size_t, size_t, size_t);
_CRTIMP void * __cdecl __MINGW_NOTHROW _aligned_offset_realloc(void*, size_t, size_t, size_t);
_CRTIMP void * __cdecl __MINGW_NOTHROW _aligned_offset_recalloc(void*, size_t, size_t, size_t, size_t);
_CRTIMP void * __cdecl __MINGW_NOTHROW _aligned_realloc (void*, size_t, size_t);
_CRTIMP void* __cdecl __MINGW_NOTHROW _aligned_recalloc(void*, size_t, size_t, size_t);
_CRTIMP void __cdecl __MINGW_NOTHROW _aligned_free (void*);
-#endif /* __MSVCRT_VERSION__ >= 0x0700 */
/* These require libmingwex.a. */
void * __cdecl __MINGW_NOTHROW __mingw_aligned_offset_malloc (size_t, size_t, size_t);
#ifndef _MAPI_H
#define _MAPI_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#ifndef _MATH_H_
#define _MATH_H_
#pragma GCC system_header
-
-/* All the headers include this file. */
#include <_mingw.h>
/*
#endif /* Not _NO_OLDNAMES */
/* This require msvcr70.dll or higher. */
-#if __MSVCRT_VERSION__ >= 0x0700
_CRTIMP int __cdecl _set_SSE2_enable (int);
-#endif /* __MSVCRT_VERSION__ >= 0x0700 */
#endif /* __STRICT_ANSI__ */
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
|| !defined __STRICT_ANSI__ || defined __cplusplus
-#if __MINGW_GNUC_PREREQ(3, 3)
#define HUGE_VALF __builtin_huge_valf()
#define HUGE_VALL __builtin_huge_vall()
#define INFINITY __builtin_inf()
#define NAN __builtin_nan("")
-#else
-extern const float __INFF;
-#define HUGE_VALF __INFF
-extern const long double __INFL;
-#define HUGE_VALL __INFL
-#define INFINITY HUGE_VALF
-extern const double __QNAN;
-#define NAN __QNAN
-#endif /* __MINGW_GNUC_PREREQ(3, 3) */
/* Use the compiler's builtin define for FLT_EVAL_METHOD to
set float_t and double_t. */
#ifndef _MBCTYPE_H
#define _MBCTYPE_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* Functions for testing multibyte character types and converting characters.
*/
-/* All the headers include this file. */
-#include <_mingw.h>
-
/* return values for _mbsbtype and _mbbtype in mbstring.h */
#define _MBC_SINGLE 0
#define _MBC_LEAD 1
#ifndef _MBSTRING_H
#define _MBSTRING_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* Protototypes for string functions supporting multibyte characters.
*/
-/* All the headers include this file. */
-#include <_mingw.h>
-
#ifndef RC_INVOKED
#define __need_size_t
#ifndef _MCIAVI_H
#define _MCIAVI_H
#pragma GCC system_header
+#include <_mingw.h>
#define MCI_MCIAVI_PLAY_WINDOW 0x1000000
#define MCI_MCIAVI_PLAY_FULLSCREEN 0x2000000
#ifndef _MCX_H
#define _MCX_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#define DIALOPTION_BILLING 64
#define DIALOPTION_QUIET 128
#define DIALOPTION_DIALTONE 256
DWORD dwNegotiatedDCERate;
BYTE abVariablePortion[1];
} MODEMSETTINGS,*PMODEMSETTINGS,*LPMODEMSETTINGS;
+
#ifdef __cplusplus
}
#endif
+
#endif /* _MCX_H */
#ifndef _MEM_H
#define _MEM_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* mem.h maps to string.h
#ifndef _MEMORY_H
#define _MEMORY_H
#pragma GCC system_header
+#include <_mingw.h>
/*
* memory.h maps to the standard string.h header.
#ifndef _MGM_H
#define _MGM_H
#pragma GCC system_header
+#include <_mingw.h>
#ifdef __cplusplus
extern "C" {
#endif
-#if (_WIN32_WINNT >= 0x0500)
+#if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K)
#define MGM_JOIN_STATE_FLAG 0x00000001
#define MGM_FORWARD_STATE_FLAG 0x00000002
#define MGM_MFE_STATS_0 0x00000001
DWORD WINAPI MgmReleaseInterfaceOwnership(HANDLE,DWORD,DWORD);
DWORD WINAPI MgmSetMfe(HANDLE,PMIB_IPMCAST_MFE);
DWORD WINAPI MgmTakeInterfaceOwnership(HANDLE,DWORD,DWORD);
-#endif
+#endif /* _WIN32_WINNT >= _WIN32_WINNT_WIN2K */
#ifdef __cplusplus
}
#endif
+
#endif
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
-
-/*
- * SNMP Management API
- */
-
#ifndef _MGMTAPI_H
#define _MGMTAPI_H
#pragma GCC system_header
+#include <_mingw.h>
-#ifndef _SNMP_H
+/*
+ * SNMP Management API
+ */
#include <snmp.h>
-#endif
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _MLANG_H
#define _MLANG_H
#pragma GCC system_header
+#include <_mingw.h>
#include <windows.h>
#ifdef __cplusplus
extern "C" {
#endif
+
#pragma pack(push,1)
#define MAX_MIMECP_NAME 64
};
#undef INTERFACE
-
#pragma pack(pop)
+
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _MMREG_H
#define _MMREG_H
#pragma GCC system_header
+#include <_mingw.h>
-#ifndef _MMSYSTEM_H
#include <mmsystem.h>
-#endif
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
+
#endif
#ifndef _MMSYSTEM_H
#define _MMSYSTEM_H
#pragma GCC system_header
+#include <_mingw.h>
#pragma pack(push,1)
#define TIME_CALLBACK_FUNCTION 0
#define TIME_CALLBACK_EVENT_SET 16
#define TIME_CALLBACK_EVENT_PULSE 32
-#if (WINVER >= 0x0501)
-#define TIME_KILL_SYNCHRONOUS 0x0100
-#endif
#define JOYERR_NOERROR (0)
#define JOYERR_PARMS (JOYERR_BASE+5)
#define JOYERR_NOCANDO (JOYERR_BASE+6)
RECT rc;
} MCI_OVLY_LOAD_PARMSW,*PMCI_OVLY_LOAD_PARMSW,*LPMCI_OVLY_LOAD_PARMSW;
-#ifdef UNICODE
-typedef WAVEOUTCAPSW WAVEOUTCAPS,*PWAVEOUTCAPS,*LPWAVEOUTCAPS;
-typedef WAVEINCAPSW WAVEINCAPS,*PWAVEINCAPS,*LPWAVEINCAPS;
-typedef MIDIOUTCAPSW MIDIOUTCAPS,*PMIDIOUTCAPS,*LPMIDIOUTCAPS;
-typedef MIDIINCAPSW MIDIINCAPS,*PMIDIINCAPS,*LPMIDIINCAPS;
-typedef AUXCAPSW AUXCAPS,*PAUXCAPS,*LPAUXCAPS;
-typedef MIXERCAPSW MIXERCAPS,*PMIXERCAPS,*LPMIXERCAPS;
-typedef MIXERLINEW MIXERLINE,*PMIXERLINE,*LPMIXERLINE;
-typedef MIXERCONTROLW MIXERCONTROL,*PMIXERCONTROL,*LPMIXERCONTROL;
-typedef MIXERLINECONTROLSW MIXERLINECONTROLS,*PMIXERLINECONTROLS,*LPMIXERLINECONTROLS;
-typedef MIXERCONTROLDETAILS_LISTTEXTW MIXERCONTROLDETAILS_LISTTEXT,*PMIXERCONTROLDETAILS_LISTTEXT,*LPMIXERCONTROLDETAILS_LISTTEXT;
-typedef JOYCAPSW JOYCAPS,*PJOYCAPS,*LPJOYCAPS;
-typedef MCI_OPEN_PARMSW MCI_OPEN_PARMS,*PMCI_OPEN_PARMS,*LPMCI_OPEN_PARMS;
-typedef MCI_INFO_PARMSW MCI_INFO_PARMS,*LPMCI_INFO_PARMS;
-typedef MCI_SYSINFO_PARMSW MCI_SYSINFO_PARMS,*PMCI_SYSINFO_PARMS,*LPMCI_SYSINFO_PARMS;
-typedef MCI_SAVE_PARMSW MCI_SAVE_PARMS,*PMCI_SAVE_PARMS,*LPMCI_SAVE_PARMS;
-typedef MCI_LOAD_PARMSW MCI_LOAD_PARMS,*PMCI_LOAD_PARMS,*LPMCI_LOAD_PARMS;
-typedef MCI_VD_ESCAPE_PARMSW MCI_VD_ESCAPE_PARMS,*PMCI_VD_ESCAPE_PARMS,*LPMCI_VD_ESCAPE_PARMS;
-typedef MCI_WAVE_OPEN_PARMSW MCI_WAVE_OPEN_PARMS,*PMCI_WAVE_OPEN_PARMS,*LPMCI_WAVE_OPEN_PARMS;
-typedef MCI_ANIM_OPEN_PARMSW MCI_ANIM_OPEN_PARMS,*PMCI_ANIM_OPEN_PARMS,*LPMCI_ANIM_OPEN_PARMS;
-typedef MCI_ANIM_WINDOW_PARMSW MCI_ANIM_WINDOW_PARMS,*PMCI_ANIM_WINDOW_PARMS,*LPMCI_ANIM_WINDOW_PARMS;
-typedef MCI_OVLY_OPEN_PARMSW MCI_OVLY_OPEN_PARMS,*PMCI_OVLY_OPEN_PARMS,*LPMCI_OVLY_OPEN_PARMS;
-typedef MCI_OVLY_WINDOW_PARMSW MCI_OVLY_WINDOW_PARMS,*PMCI_OVLY_WINDOW_PARMS,*LPMCI_OVLY_WINDOW_PARMS;
-typedef MCI_OVLY_SAVE_PARMSW MCI_OVLY_SAVE_PARMS,*PMCI_OVLY_SAVE_PARMS,*LPMCI_OVLY_SAVE_PARMS;
-#define sndPlaySound sndPlaySoundW
-#define PlaySound PlaySoundW
-#define waveOutGetDevCaps waveOutGetDevCapsW
-#define waveOutGetErrorText waveOutGetErrorTextW
-#define waveInGetDevCaps waveInGetDevCapsW
-#define waveInGetErrorText waveInGetErrorTextW
-#define midiOutGetDevCaps midiOutGetDevCapsW
-#define midiOutGetErrorText midiOutGetErrorTextW
-#define midiInGetDevCaps midiInGetDevCapsW
-#define midiInGetErrorText midiInGetErrorTextW
-#define auxGetDevCaps auxGetDevCapsW
-#define mixerGetDevCaps mixerGetDevCapsW
-#define mixerGetLineInfo mixerGetLineInfoW
-#define mixerGetLineControls mixerGetLineControlsW
-#define mixerGetControlDetails mixerGetControlDetailsW
-#define joyGetDevCaps joyGetDevCapsW
-#define mmioInstallIOProc mmioInstallIOProcW
-#define mmioStringToFOURCC mmioStringToFOURCCW
-#define mmioOpen mmioOpenW
-#define mmioRename mmioRenameW
-#define mciSendCommand mciSendCommandW
-#define mciSendString mciSendStringW
-#define mciGetDeviceID mciGetDeviceIDW
-#define mciGetDeviceIDFromElementID mciGetDeviceIDFromElementIDW
-#define mciGetErrorString mciGetErrorStringW
-#else
-typedef WAVEOUTCAPSA WAVEOUTCAPS,*PWAVEOUTCAPS,*LPWAVEOUTCAPS;
-typedef WAVEINCAPSA WAVEINCAPS,*PWAVEINCAPS,*LPWAVEINCAPS;
-typedef MIDIOUTCAPSA MIDIOUTCAPS,*PMIDIOUTCAPS,*LPMIDIOUTCAPS;
-typedef MIDIINCAPSA MIDIINCAPS,*PMIDIINCAPS,*LPMIDIINCAPS;
-typedef AUXCAPSA AUXCAPS,*PAUXCAPS,*LPAUXCAPS;
-typedef MIXERCAPSA MIXERCAPS,*PMIXERCAPS,*LPMIXERCAPS;
-typedef MIXERLINEA MIXERLINE,*PMIXERLINE,*LPMIXERLINE;
-typedef MIXERCONTROLA MIXERCONTROL,*PMIXERCONTROL,*LPMIXERCONTROL;
-typedef MIXERLINECONTROLSA MIXERLINECONTROLS,*PMIXERLINECONTROLS,*LPMIXERLINECONTROLS;
-typedef MIXERCONTROLDETAILS_LISTTEXTA MIXERCONTROLDETAILS_LISTTEXT,*PMIXERCONTROLDETAILS_LISTTEXT,*LPMIXERCONTROLDETAILS_LISTTEXT;
-typedef JOYCAPSA JOYCAPS,*PJOYCAPS,*LPJOYCAPS;
-typedef MCI_OPEN_PARMSA MCI_OPEN_PARMS,*PMCI_OPEN_PARMS,*LPMCI_OPEN_PARMS;
-typedef MCI_INFO_PARMSA MCI_INFO_PARMS,*LPMCI_INFO_PARMS;
-typedef MCI_SYSINFO_PARMSA MCI_SYSINFO_PARMS,*PMCI_SYSINFO_PARMS,*LPMCI_SYSINFO_PARMS;
-typedef MCI_SAVE_PARMSA MCI_SAVE_PARMS,*PMCI_SAVE_PARMS,*LPMCI_SAVE_PARMS;
-typedef MCI_LOAD_PARMSA MCI_LOAD_PARMS,*PMCI_LOAD_PARMS,*LPMCI_LOAD_PARMS;
-typedef MCI_VD_ESCAPE_PARMSA MCI_VD_ESCAPE_PARMS,*PMCI_VD_ESCAPE_PARMS,*LPMCI_VD_ESCAPE_PARMS;
-typedef MCI_WAVE_OPEN_PARMSA MCI_WAVE_OPEN_PARMS,*PMCI_WAVE_OPEN_PARMS,*LPMCI_WAVE_OPEN_PARMS;
-typedef MCI_ANIM_OPEN_PARMSA MCI_ANIM_OPEN_PARMS,*PMCI_ANIM_OPEN_PARMS,*LPMCI_ANIM_OPEN_PARMS;
-typedef MCI_ANIM_WINDOW_PARMSA MCI_ANIM_WINDOW_PARMS,*PMCI_ANIM_WINDOW_PARMS,*LPMCI_ANIM_WINDOW_PARMS;
-typedef MCI_OVLY_OPEN_PARMSA MCI_OVLY_OPEN_PARMS,*PMCI_OVLY_OPEN_PARMS,*LPMCI_OVLY_OPEN_PARMS;
-typedef MCI_OVLY_WINDOW_PARMSA MCI_OVLY_WINDOW_PARMS,*PMCI_OVLY_WINDOW_PARMS,*LPMCI_OVLY_WINDOW_PARMS;
-typedef MCI_OVLY_SAVE_PARMSA MCI_OVLY_SAVE_PARMS,*PMCI_OVLY_SAVE_PARMS,*LPMCI_OVLY_SAVE_PARMS;
-#define sndPlaySound sndPlaySoundA
-#define PlaySound PlaySoundA
-#define waveOutGetDevCaps waveOutGetDevCapsA
-#define waveOutGetErrorText waveOutGetErrorTextA
-#define waveInGetDevCaps waveInGetDevCapsA
-#define waveInGetErrorText waveInGetErrorTextA
-#define midiOutGetDevCaps midiOutGetDevCapsA
-#define midiOutGetErrorText midiOutGetErrorTextA
-#define midiInGetDevCaps midiInGetDevCapsA
-#define midiInGetErrorText midiInGetErrorTextA
-#define auxGetDevCaps auxGetDevCapsA
-#define mixerGetDevCaps mixerGetDevCapsA
-#define mixerGetLineInfo mixerGetLineInfoA
-#define mixerGetLineControls mixerGetLineControlsA
-#define mixerGetControlDetails mixerGetControlDetailsA
-#define joyGetDevCaps joyGetDevCapsA
-#define mmioInstallIOProc mmioInstallIOProcA
-#define mmioStringToFOURCC mmioStringToFOURCCA
-#define mmioOpen mmioOpenA
-#define mmioRename mmioRenameA
-#define mciSendCommand mciSendCommandA
-#define mciSendString mciSendStringA
-#define mciGetDeviceID mciGetDeviceIDA
-#define mciGetDeviceIDFromElementID mciGetDeviceIDFromElementIDA
-#define mciGetErrorString mciGetErrorStringA
+typedef __AW(WAVEOUTCAPS) WAVEOUTCAPS,*PWAVEOUTCAPS,*LPWAVEOUTCAPS;
+typedef __AW(WAVEINCAPS) WAVEINCAPS,*PWAVEINCAPS,*LPWAVEINCAPS;
+typedef __AW(MIDIOUTCAPS) MIDIOUTCAPS,*PMIDIOUTCAPS,*LPMIDIOUTCAPS;
+typedef __AW(MIDIINCAPS) MIDIINCAPS,*PMIDIINCAPS,*LPMIDIINCAPS;
+typedef __AW(AUXCAPS) AUXCAPS,*PAUXCAPS,*LPAUXCAPS;
+typedef __AW(MIXERCAPS) MIXERCAPS,*PMIXERCAPS,*LPMIXERCAPS;
+typedef __AW(MIXERLINE) MIXERLINE,*PMIXERLINE,*LPMIXERLINE;
+typedef __AW(MIXERCONTROL) MIXERCONTROL,*PMIXERCONTROL,*LPMIXERCONTROL;
+typedef __AW(MIXERLINECONTROLS) MIXERLINECONTROLS,*PMIXERLINECONTROLS,*LPMIXERLINECONTROLS;
+typedef __AW(MIXERCONTROLDETAILS_LISTTEXT) MIXERCONTROLDETAILS_LISTTEXT,*PMIXERCONTROLDETAILS_LISTTEXT,*LPMIXERCONTROLDETAILS_LISTTEXT;
+typedef __AW(JOYCAPS) JOYCAPS,*PJOYCAPS,*LPJOYCAPS;
+typedef __AW(MCI_OPEN_PARMS) MCI_OPEN_PARMS,*PMCI_OPEN_PARMS,*LPMCI_OPEN_PARMS;
+typedef __AW(MCI_INFO_PARMS) MCI_INFO_PARMS,*LPMCI_INFO_PARMS;
+typedef __AW(MCI_SYSINFO_PARMS) MCI_SYSINFO_PARMS,*PMCI_SYSINFO_PARMS,*LPMCI_SYSINFO_PARMS;
+typedef __AW(MCI_SAVE_PARMS) MCI_SAVE_PARMS,*PMCI_SAVE_PARMS,*LPMCI_SAVE_PARMS;
+typedef __AW(MCI_LOAD_PARMS) MCI_LOAD_PARMS,*PMCI_LOAD_PARMS,*LPMCI_LOAD_PARMS;
+typedef __AW(MCI_VD_ESCAPE_PARMS) MCI_VD_ESCAPE_PARMS,*PMCI_VD_ESCAPE_PARMS,*LPMCI_VD_ESCAPE_PARMS;
+typedef __AW(MCI_WAVE_OPEN_PARMS) MCI_WAVE_OPEN_PARMS,*PMCI_WAVE_OPEN_PARMS,*LPMCI_WAVE_OPEN_PARMS;
+typedef __AW(MCI_ANIM_OPEN_PARMS) MCI_ANIM_OPEN_PARMS,*PMCI_ANIM_OPEN_PARMS,*LPMCI_ANIM_OPEN_PARMS;
+typedef __AW(MCI_ANIM_WINDOW_PARMS) MCI_ANIM_WINDOW_PARMS,*PMCI_ANIM_WINDOW_PARMS,*LPMCI_ANIM_WINDOW_PARMS;
+typedef __AW(MCI_OVLY_OPEN_PARMS) MCI_OVLY_OPEN_PARMS,*PMCI_OVLY_OPEN_PARMS,*LPMCI_OVLY_OPEN_PARMS;
+typedef __AW(MCI_OVLY_WINDOW_PARMS) MCI_OVLY_WINDOW_PARMS,*PMCI_OVLY_WINDOW_PARMS,*LPMCI_OVLY_WINDOW_PARMS;
+typedef __AW(MCI_OVLY_SAVE_PARMS) MCI_OVLY_SAVE_PARMS,*PMCI_OVLY_SAVE_PARMS,*LPMCI_OVLY_SAVE_PARMS;
+#define sndPlaySound __AW(sndPlaySound)
+#define PlaySound __AW(PlaySound)
+#define waveOutGetDevCaps __AW(waveOutGetDevCaps)
+#define waveOutGetErrorText __AW(waveOutGetErrorText)
+#define waveInGetDevCaps __AW(waveInGetDevCaps)
+#define waveInGetErrorText __AW(waveInGetErrorText)
+#define midiOutGetDevCaps __AW(midiOutGetDevCaps)
+#define midiOutGetErrorText __AW(midiOutGetErrorText)
+#define midiInGetDevCaps __AW(midiInGetDevCaps)
+#define midiInGetErrorText __AW(midiInGetErrorText)
+#define auxGetDevCaps __AW(auxGetDevCaps)
+#define mixerGetDevCaps __AW(mixerGetDevCaps)
+#define mixerGetLineInfo __AW(mixerGetLineInfo)
+#define mixerGetLineControls __AW(mixerGetLineControls)
+#define mixerGetControlDetails __AW(mixerGetControlDetails)
+#define joyGetDevCaps __AW(joyGetDevCaps)
+#define mmioInstallIOProc __AW(mmioInstallIOProc)
+#define mmioStringToFOURCC __AW(mmioStringToFOURCC)
+#define mmioOpen __AW(mmioOpen)
+#define mmioRename __AW(mmioRename)
+#define mciSendCommand __AW(mciSendCommand)
+#define mciSendString __AW(mciSendString)
+#define mciGetDeviceID __AW(mciGetDeviceID)
+#define mciGetDeviceIDFromElementID __AW(mciGetDeviceIDFromElementID)
+#define mciGetErrorString __AW(mciGetErrorString)
+
+#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP)
+#define TIME_KILL_SYNCHRONOUS 0x0100
#endif
+
#ifdef __cplusplus
}
#endif
+
#pragma pack(pop)
+
#endif
#ifndef _MPEGTYPE_H
#define _MPEGTYPE_H
#pragma GCC system_header
+#include <_mingw.h>
#include <strmif.h>
#ifdef __cplusplus
}
#endif
+
#endif
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
-
-/*
- * Routing and Remote Access Services
- */
#ifndef _MPRAPI_H
#define _MPRAPI_H
#pragma GCC system_header
+#include <_mingw.h>
+/*
+ * Routing and Remote Access Services
+ */
#include <ras.h>
#include <lmcons.h>
extern "C" {
#endif
-#if (_WIN32_WINNT >= 0x0500)
+#if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K)
/*--- Router Management Reference - Router Management Enumerated Types */
typedef enum _ROUTER_CONNECTION_STATE {
ROUTER_IF_STATE_UNREACHABLE,
DWORD dwSize;
LPBYTE lpbCredentialsInfo;
} MPR_CREDENTIALSEX_0,*PMPR_CREDENTIALSEX_0;
-#if (_WIN32_WINNT >= 0x0502)
-typedef struct _MPR_CREDENTIALSEX_1 {
- DWORD dwSize;
- LPBYTE lpbCredentialsInfo;
-} MPR_CREDENTIALSEX_1,*PMPR_CREDENTIALSEX_1;
-#endif
#define MPR_MaxDeviceType RAS_MaxDeviceType
#define MPR_MaxDeviceName RAS_MaxDeviceName
#define MPR_MaxPadType RAS_MaxPadType
#define MPR_VS_PptpFirst VS_PptpFirst
#define MPR_VS_L2tpOnly VS_L2tpOnly
#define MPR_VS_L2tpFirst VS_L2tpFirst
-#if (_WIN32_WINNT>=0x0600)
-typedef struct _MPR_INTERFACE_3 {
- WCHAR wszInterfaceName[MAX_INTERFACE_NAME_LEN+1];
- HANDLE hInterface;
- BOOL fEnabled;
- ROUTER_INTERFACE_TYPE dwIfType;
- ROUTER_CONNECTION_STATE dwConnectionState;
- DWORD fUnReachabilityReasons;
- DWORD dwLastError;
- DWORD dwfOptions;
- WCHAR szLocalPhoneNumber[RAS_MaxPhoneNumber+1];
- PWCHAR szAlternates;
- DWORD ipaddr;
- DWORD ipaddrDns;
- DWORD ipaddrDnsAlt;
- DWORD ipaddrWins;
- DWORD ipaddrWinsAlt;
- DWORD dwfNetProtocols;
- WCHAR szDeviceType[MPR_MaxDeviceType+1];
- WCHAR szDeviceName[MPR_MaxDeviceName+1];
- WCHAR szX25PadType[MPR_MaxPadType+1];
- WCHAR szX25Address[MPR_MaxX25Address+1];
- WCHAR szX25Facilities[MPR_MaxFacilities+1];
- WCHAR szX25UserData[MPR_MaxUserData+1];
- DWORD dwChannels;
- DWORD dwSubEntries;
- DWORD dwDialMode;
- DWORD dwDialExtraPercent;
- DWORD dwDialExtraSampleSeconds;
- DWORD dwHangUpExtraPercent;
- DWORD dwHangUpExtraSampleSeconds;
- DWORD dwIdleDisconnectSeconds;
- DWORD dwType;
- DWORD dwEncryptionType;
- DWORD dwCustomAuthKey;
- DWORD dwCustomAuthDataSize;
- LPBYTE lpbCustomAuthData;
- GUID guidId;
- DWORD dwVpnStrategy;
- ULONG AddressCount;
- IN6_ADDR ipv6addrDns;
- IN6_ADDR ipv6addrDnsAlt;
- IN6_ADDR* ipv6addr;
-} MPR_INTERFACE_3,*PMPR_INTERFACE_3;
-#endif
typedef struct _MPR_SERVER_0 {
BOOL fLanOnlyMode;
DWORD dwUpTime;
DWORD dwTotalPorts;
DWORD dwPortsInUse;
} MPR_SERVER_0,*PMPR_SERVER_0;
-#if (_WIN32_WINNT >= 0x0502)
-typedef struct _MPR_SERVER_1 {
- DWORD dwNumPptpPorts;
- DWORD dwPptpPortFlags;
- DWORD dwNumL2tpPorts;
- DWORD dwL2tpPortFlags;
-} MPR_SERVER_1,*PMPR_SERVER_1;
-#define MPR_ENABLE_RAS_ON_DEVICE 0x00000001
-#define MPR_ENABLE_ROUTING_ON_DEVICE 0x00000002
-#endif
typedef struct _MPR_TRANSPORT_0 {
DWORD dwTransportId;
HANDLE hTransport;
BOOL WINAPI MprAdminAcceptNewConnection(RAS_CONNECTION_0*,RAS_CONNECTION_1*);
BOOL WINAPI MprAdminAcceptNewConnection2(RAS_CONNECTION_0*,RAS_CONNECTION_1*,RAS_CONNECTION_2*);
BOOL WINAPI MprAdminAcceptNewLink(RAS_PORT_0*,RAS_PORT_1*);
-#if (_WIN32_WINNT >= 0x0600)
-BOOL WINAPI MprAdminAcceptReauthentication(RAS_CONNECTION_0*,RAS_CONNECTION_1*,RAS_CONNECTION_2*,RAS_CONNECTION_3*);
-#endif
void WINAPI MprAdminConnectionHangupNotification(RAS_CONNECTION_0*,RAS_CONNECTION_1*);
void WINAPI MprAdminConnectionHangupNotification2(RAS_CONNECTION_0*,RAS_CONNECTION_1*,RAS_CONNECTION_2*);
DWORD WINAPI MprAdminGetIpAddressForUser(WCHAR*,WCHAR*,DWORD*,BOOL*);
-#if (_WIN32_WINNT >= 0x0502)
-DWORD WINAPI MprAdminInitializeDll(void);
-DWORD WINAPI MprAdminTerminateDll(void);
-#endif
void WINAPI MprAdminLinkHangupNotification(RAS_PORT_0*,RAS_PORT_1*);
void WINAPI MprAdminReleaseIpAddress(WCHAR*,WCHAR*,DWORD*);
/*--- Remote Access Service Administration Reference - RAS Administration Functions - RAS User Administration Functions */
DWORD WINAPI MprAdminMIBServerConnect(LPWSTR,MIB_SERVER_HANDLE*);
void WINAPI MprAdminMIBServerDisconnect(MIB_SERVER_HANDLE);
DWORD WINAPI MprAdminMIBSetTrapInfo(DWORD,DWORD,HANDLE,LPVOID,DWORD,LPVOID*,LPDWORD);
-#endif /* (_WIN32_WINNT >= 0x0500) */
+#endif /* (_WIN32_WINNT >= _WIN32_WINNT_WIN2K) */
+
+#if (_WIN32_WINNT >= _WIN32_WINNT_WS03)
+typedef struct _MPR_CREDENTIALSEX_1 {
+ DWORD dwSize;
+ LPBYTE lpbCredentialsInfo;
+} MPR_CREDENTIALSEX_1,*PMPR_CREDENTIALSEX_1;
+typedef struct _MPR_SERVER_1 {
+ DWORD dwNumPptpPorts;
+ DWORD dwPptpPortFlags;
+ DWORD dwNumL2tpPorts;
+ DWORD dwL2tpPortFlags;
+} MPR_SERVER_1,*PMPR_SERVER_1;
+#define MPR_ENABLE_RAS_ON_DEVICE 0x00000001
+#define MPR_ENABLE_ROUTING_ON_DEVICE 0x00000002
+DWORD WINAPI MprAdminInitializeDll(void);
+DWORD WINAPI MprAdminTerminateDll(void);
+#endif /* _WIN32_WINNT >= _WIN32_WINNT_WS03 */
+
+#if (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
+typedef struct _MPR_INTERFACE_3 {
+ WCHAR wszInterfaceName[MAX_INTERFACE_NAME_LEN+1];
+ HANDLE hInterface;
+ BOOL fEnabled;
+ ROUTER_INTERFACE_TYPE dwIfType;
+ ROUTER_CONNECTION_STATE dwConnectionState;
+ DWORD fUnReachabilityReasons;
+ DWORD dwLastError;
+ DWORD dwfOptions;
+ WCHAR szLocalPhoneNumber[RAS_MaxPhoneNumber+1];
+ PWCHAR szAlternates;
+ DWORD ipaddr;
+ DWORD ipaddrDns;
+ DWORD ipaddrDnsAlt;
+ DWORD ipaddrWins;
+ DWORD ipaddrWinsAlt;
+ DWORD dwfNetProtocols;
+ WCHAR szDeviceType[MPR_MaxDeviceType+1];
+ WCHAR szDeviceName[MPR_MaxDeviceName+1];
+ WCHAR szX25PadType[MPR_MaxPadType+1];
+ WCHAR szX25Address[MPR_MaxX25Address+1];
+ WCHAR szX25Facilities[MPR_MaxFacilities+1];
+ WCHAR szX25UserData[MPR_MaxUserData+1];
+ DWORD dwChannels;
+ DWORD dwSubEntries;
+ DWORD dwDialMode;
+ DWORD dwDialExtraPercent;
+ DWORD dwDialExtraSampleSeconds;
+ DWORD dwHangUpExtraPercent;
+ DWORD dwHangUpExtraSampleSeconds;
+ DWORD dwIdleDisconnectSeconds;
+ DWORD dwType;
+ DWORD dwEncryptionType;
+ DWORD dwCustomAuthKey;
+ DWORD dwCustomAuthDataSize;
+ LPBYTE lpbCustomAuthData;
+ GUID guidId;
+ DWORD dwVpnStrategy;
+ ULONG AddressCount;
+ IN6_ADDR ipv6addrDns;
+ IN6_ADDR ipv6addrDnsAlt;
+ IN6_ADDR* ipv6addr;
+} MPR_INTERFACE_3,*PMPR_INTERFACE_3;
+BOOL WINAPI MprAdminAcceptReauthentication(RAS_CONNECTION_0*,RAS_CONNECTION_1*,RAS_CONNECTION_2*,RAS_CONNECTION_3*);
+#endif /* _WIN32_WINNT >= _WIN32_WINNT_VISTA */
#ifdef __cplusplus
}
#endif
+
#endif