mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
win32: Add missing header files for nginx compilation
From: Vlad Vissoultchev Date: Tue, 12 Apr 2016 21:02:43 +0300 Subject: win32: Add missing header files for nginx compilation The new ones are hoisted from mingw-w64 as most other headers under `win32/include/winapi`
This commit is contained in:
parent
52d194a1e6
commit
a1a5c81e6c
@ -133,4 +133,8 @@ typedef struct localeinfo_struct _locale_tstruct,*_locale_t;
|
||||
# define _WIN32_WINNT 0x502
|
||||
#endif
|
||||
|
||||
#define __C89_NAMELESS
|
||||
#define __MINGW_EXTENSION
|
||||
#define WINAPI_FAMILY_PARTITION(X) 1
|
||||
|
||||
#endif /* __MINGW_H */
|
||||
|
193
win32/include/winapi/mswsock.h
Normal file
193
win32/include/winapi/mswsock.h
Normal file
@ -0,0 +1,193 @@
|
||||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the mingw-w64 runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
*/
|
||||
|
||||
#ifndef _MSWSOCK_
|
||||
#define _MSWSOCK_
|
||||
|
||||
#include <winsock2.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define SO_CONNDATA 0x7000
|
||||
#define SO_CONNOPT 0x7001
|
||||
#define SO_DISCDATA 0x7002
|
||||
#define SO_DISCOPT 0x7003
|
||||
#define SO_CONNDATALEN 0x7004
|
||||
#define SO_CONNOPTLEN 0x7005
|
||||
#define SO_DISCDATALEN 0x7006
|
||||
#define SO_DISCOPTLEN 0x7007
|
||||
|
||||
#define SO_OPENTYPE 0x7008
|
||||
|
||||
#define SO_SYNCHRONOUS_ALERT 0x10
|
||||
#define SO_SYNCHRONOUS_NONALERT 0x20
|
||||
|
||||
#define SO_MAXDG 0x7009
|
||||
#define SO_MAXPATHDG 0x700A
|
||||
#define SO_UPDATE_ACCEPT_CONTEXT 0x700B
|
||||
#define SO_CONNECT_TIME 0x700C
|
||||
#define SO_UPDATE_CONNECT_CONTEXT 0x7010
|
||||
|
||||
#define TCP_BSDURGENT 0x7000
|
||||
|
||||
#define SIO_UDP_CONNRESET _WSAIOW(IOC_VENDOR,12)
|
||||
#if (_WIN32_WINNT < 0x0600) && (_WIN32_WINNT >= 0x0501)
|
||||
#define SIO_SOCKET_CLOSE_NOTIFY _WSAIOW(IOC_VENDOR,13)
|
||||
#endif /* >= XP && < VISTA */
|
||||
#if (_WIN32_WINNT >= 0x0600)
|
||||
#define SIO_BSP_HANDLE _WSAIOR(IOC_WS2,27)
|
||||
#define SIO_BSP_HANDLE_SELECT _WSAIOR(IOC_WS2,28)
|
||||
#define SIO_BSP_HANDLE_POLL _WSAIOR(IOC_WS2,29)
|
||||
|
||||
#define SIO_EXT_SELECT _WSAIORW(IOC_WS2,30)
|
||||
#define SIO_EXT_POLL _WSAIORW(IOC_WS2,31)
|
||||
#define SIO_EXT_SENDMSG _WSAIORW(IOC_WS2,32)
|
||||
|
||||
#define SIO_BASE_HANDLE _WSAIOR(IOC_WS2,34)
|
||||
#endif /* _WIN32_WINNT >= 0x0600 */
|
||||
|
||||
#ifndef __MSWSOCK_WS1_SHARED
|
||||
int WINAPI WSARecvEx(SOCKET s,char *buf,int len,int *flags);
|
||||
#endif /* __MSWSOCK_WS1_SHARED */
|
||||
|
||||
#define TF_DISCONNECT 0x01
|
||||
#define TF_REUSE_SOCKET 0x02
|
||||
#define TF_WRITE_BEHIND 0x04
|
||||
#define TF_USE_DEFAULT_WORKER 0x00
|
||||
#define TF_USE_SYSTEM_THREAD 0x10
|
||||
#define TF_USE_KERNEL_APC 0x20
|
||||
|
||||
#include <psdk_inc/_xmitfile.h>
|
||||
#ifndef __MSWSOCK_WS1_SHARED
|
||||
WINBOOL WINAPI TransmitFile(SOCKET hSocket,HANDLE hFile,DWORD nNumberOfBytesToWrite,DWORD nNumberOfBytesPerSend,LPOVERLAPPED lpOverlapped,LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers,DWORD dwReserved);
|
||||
WINBOOL WINAPI AcceptEx(SOCKET sListenSocket,SOCKET sAcceptSocket,PVOID lpOutputBuffer,DWORD dwReceiveDataLength,DWORD dwLocalAddressLength,DWORD dwRemoteAddressLength,LPDWORD lpdwBytesReceived,LPOVERLAPPED lpOverlapped);
|
||||
VOID WINAPI GetAcceptExSockaddrs(PVOID lpOutputBuffer,DWORD dwReceiveDataLength,DWORD dwLocalAddressLength,DWORD dwRemoteAddressLength,struct sockaddr **LocalSockaddr,LPINT LocalSockaddrLength,struct sockaddr **RemoteSockaddr,LPINT RemoteSockaddrLength);
|
||||
#endif /* __MSWSOCK_WS1_SHARED */
|
||||
|
||||
typedef WINBOOL (WINAPI *LPFN_TRANSMITFILE)(SOCKET hSocket,HANDLE hFile,DWORD nNumberOfBytesToWrite,DWORD nNumberOfBytesPerSend,LPOVERLAPPED lpOverlapped,LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers,DWORD dwReserved);
|
||||
|
||||
#define WSAID_TRANSMITFILE {0xb5367df0,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}
|
||||
|
||||
typedef WINBOOL (WINAPI *LPFN_ACCEPTEX)(SOCKET sListenSocket,SOCKET sAcceptSocket,PVOID lpOutputBuffer,DWORD dwReceiveDataLength,DWORD dwLocalAddressLength,DWORD dwRemoteAddressLength,LPDWORD lpdwBytesReceived,LPOVERLAPPED lpOverlapped);
|
||||
|
||||
#define WSAID_ACCEPTEX {0xb5367df1,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}
|
||||
|
||||
typedef VOID (WINAPI *LPFN_GETACCEPTEXSOCKADDRS)(PVOID lpOutputBuffer,DWORD dwReceiveDataLength,DWORD dwLocalAddressLength,DWORD dwRemoteAddressLength,struct sockaddr **LocalSockaddr,LPINT LocalSockaddrLength,struct sockaddr **RemoteSockaddr,LPINT RemoteSockaddrLength);
|
||||
|
||||
#define WSAID_GETACCEPTEXSOCKADDRS {0xb5367df2,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}
|
||||
|
||||
typedef struct _TRANSMIT_PACKETS_ELEMENT {
|
||||
ULONG dwElFlags;
|
||||
#define TP_ELEMENT_MEMORY 1
|
||||
#define TP_ELEMENT_FILE 2
|
||||
#define TP_ELEMENT_EOP 4
|
||||
ULONG cLength;
|
||||
__C89_NAMELESS union {
|
||||
__C89_NAMELESS struct {
|
||||
LARGE_INTEGER nFileOffset;
|
||||
HANDLE hFile;
|
||||
};
|
||||
PVOID pBuffer;
|
||||
};
|
||||
} TRANSMIT_PACKETS_ELEMENT,*PTRANSMIT_PACKETS_ELEMENT,*LPTRANSMIT_PACKETS_ELEMENT;
|
||||
|
||||
#define TP_DISCONNECT TF_DISCONNECT
|
||||
#define TP_REUSE_SOCKET TF_REUSE_SOCKET
|
||||
#define TP_USE_DEFAULT_WORKER TF_USE_DEFAULT_WORKER
|
||||
#define TP_USE_SYSTEM_THREAD TF_USE_SYSTEM_THREAD
|
||||
#define TP_USE_KERNEL_APC TF_USE_KERNEL_APC
|
||||
|
||||
typedef WINBOOL (WINAPI *LPFN_TRANSMITPACKETS) (SOCKET hSocket,LPTRANSMIT_PACKETS_ELEMENT lpPacketArray,DWORD nElementCount,DWORD nSendSize,LPOVERLAPPED lpOverlapped,DWORD dwFlags);
|
||||
|
||||
#define WSAID_TRANSMITPACKETS {0xd9689da0,0x1f90,0x11d3,{0x99,0x71,0x00,0xc0,0x4f,0x68,0xc8,0x76}}
|
||||
|
||||
typedef WINBOOL (WINAPI *LPFN_CONNECTEX)(SOCKET s,const struct sockaddr *name,int namelen,PVOID lpSendBuffer,DWORD dwSendDataLength,LPDWORD lpdwBytesSent,LPOVERLAPPED lpOverlapped);
|
||||
|
||||
#define WSAID_CONNECTEX {0x25a207b9,0xddf3,0x4660,{0x8e,0xe9,0x76,0xe5,0x8c,0x74,0x06,0x3e}}
|
||||
|
||||
typedef WINBOOL (WINAPI *LPFN_DISCONNECTEX)(SOCKET s,LPOVERLAPPED lpOverlapped,DWORD dwFlags,DWORD dwReserved);
|
||||
|
||||
#define WSAID_DISCONNECTEX {0x7fda2e11,0x8630,0x436f,{0xa0,0x31,0xf5,0x36,0xa6,0xee,0xc1,0x57}}
|
||||
|
||||
#define DE_REUSE_SOCKET TF_REUSE_SOCKET
|
||||
|
||||
#define NLA_NAMESPACE_GUID {0x6642243a,0x3ba8,0x4aa6,{0xba,0xa5,0x2e,0xb,0xd7,0x1f,0xdd,0x83}}
|
||||
|
||||
#define NLA_SERVICE_CLASS_GUID {0x37e515,0xb5c9,0x4a43,{0xba,0xda,0x8b,0x48,0xa8,0x7a,0xd2,0x39}}
|
||||
|
||||
#define NLA_ALLUSERS_NETWORK 0x00000001
|
||||
#define NLA_FRIENDLY_NAME 0x00000002
|
||||
|
||||
typedef enum _NLA_BLOB_DATA_TYPE {
|
||||
NLA_RAW_DATA = 0,NLA_INTERFACE = 1,NLA_802_1X_LOCATION = 2,NLA_CONNECTIVITY = 3,NLA_ICS = 4
|
||||
} NLA_BLOB_DATA_TYPE,*PNLA_BLOB_DATA_TYPE;
|
||||
|
||||
typedef enum _NLA_CONNECTIVITY_TYPE {
|
||||
NLA_NETWORK_AD_HOC = 0,NLA_NETWORK_MANAGED = 1,NLA_NETWORK_UNMANAGED = 2,NLA_NETWORK_UNKNOWN = 3
|
||||
} NLA_CONNECTIVITY_TYPE,*PNLA_CONNECTIVITY_TYPE;
|
||||
|
||||
typedef enum _NLA_INTERNET {
|
||||
NLA_INTERNET_UNKNOWN = 0,NLA_INTERNET_NO = 1,NLA_INTERNET_YES = 2
|
||||
} NLA_INTERNET,*PNLA_INTERNET;
|
||||
|
||||
typedef struct _NLA_BLOB {
|
||||
struct {
|
||||
NLA_BLOB_DATA_TYPE type;
|
||||
DWORD dwSize;
|
||||
DWORD nextOffset;
|
||||
} header;
|
||||
union {
|
||||
CHAR rawData[1];
|
||||
struct {
|
||||
DWORD dwType;
|
||||
DWORD dwSpeed;
|
||||
CHAR adapterName[1];
|
||||
} interfaceData;
|
||||
struct {
|
||||
CHAR information[1];
|
||||
} locationData;
|
||||
struct {
|
||||
NLA_CONNECTIVITY_TYPE type;
|
||||
NLA_INTERNET internet;
|
||||
} connectivity;
|
||||
struct {
|
||||
struct {
|
||||
DWORD speed;
|
||||
DWORD type;
|
||||
DWORD state;
|
||||
WCHAR machineName[256];
|
||||
WCHAR sharedAdapterName[256];
|
||||
} remote;
|
||||
} ICS;
|
||||
} data;
|
||||
} NLA_BLOB,*PNLA_BLOB,*LPNLA_BLOB;
|
||||
|
||||
typedef struct _WSACMSGHDR {
|
||||
SIZE_T cmsg_len;
|
||||
INT cmsg_level;
|
||||
INT cmsg_type;
|
||||
} WSACMSGHDR,*PWSACMSGHDR,*LPWSACMSGHDR;
|
||||
|
||||
#define WSA_CMSGHDR_ALIGN(length) (((length) + TYPE_ALIGNMENT(WSACMSGHDR)-1) & (~(TYPE_ALIGNMENT(WSACMSGHDR)-1)))
|
||||
#define WSA_CMSGDATA_ALIGN(length) (((length) + MAX_NATURAL_ALIGNMENT-1) & (~(MAX_NATURAL_ALIGNMENT-1)))
|
||||
#define WSA_CMSG_FIRSTHDR(msg) (((msg)->Control.len >= sizeof(WSACMSGHDR)) ? (LPWSACMSGHDR)(msg)->Control.buf : (LPWSACMSGHDR)NULL)
|
||||
#define WSA_CMSG_NXTHDR(msg,cmsg) ((!(cmsg)) ? WSA_CMSG_FIRSTHDR(msg) : ((((u_char *)(cmsg) + WSA_CMSGHDR_ALIGN((cmsg)->cmsg_len) + sizeof(WSACMSGHDR)) > (u_char *)((msg)->Control.buf) + (msg)->Control.len) ? (LPWSACMSGHDR)NULL : (LPWSACMSGHDR)((u_char *)(cmsg) + WSA_CMSGHDR_ALIGN((cmsg)->cmsg_len))))
|
||||
#define WSA_CMSG_DATA(cmsg) ((u_char *)(cmsg) + WSA_CMSGDATA_ALIGN(sizeof(WSACMSGHDR)))
|
||||
#define WSA_CMSG_SPACE(length) (WSA_CMSGDATA_ALIGN(sizeof(WSACMSGHDR) + WSA_CMSGHDR_ALIGN(length)))
|
||||
#define WSA_CMSG_LEN(length) (WSA_CMSGDATA_ALIGN(sizeof(WSACMSGHDR)) + length)
|
||||
|
||||
#define MSG_TRUNC 0x0100
|
||||
#define MSG_CTRUNC 0x0200
|
||||
#define MSG_BCAST 0x0400
|
||||
#define MSG_MCAST 0x0800
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _MSWSOCK_ */
|
18
win32/include/winapi/psdk_inc/_xmitfile.h
Normal file
18
win32/include/winapi/psdk_inc/_xmitfile.h
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the mingw-w64 runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
*/
|
||||
|
||||
#ifndef __MINGW_TRANSMIT_FILE_H
|
||||
#define __MINGW_TRANSMIT_FILE_H
|
||||
|
||||
typedef struct _TRANSMIT_FILE_BUFFERS {
|
||||
LPVOID Head;
|
||||
DWORD HeadLength;
|
||||
LPVOID Tail;
|
||||
DWORD TailLength;
|
||||
} TRANSMIT_FILE_BUFFERS, *PTRANSMIT_FILE_BUFFERS, *LPTRANSMIT_FILE_BUFFERS;
|
||||
|
||||
#endif /* __MINGW_TRANSMIT_FILE_H */
|
||||
|
904
win32/include/winapi/shellapi.h
Normal file
904
win32/include/winapi/shellapi.h
Normal file
@ -0,0 +1,904 @@
|
||||
/**
|
||||
* This file is part of the mingw-w64 runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
|
||||
#ifndef _INC_SHELLAPI
|
||||
#define _INC_SHELLAPI
|
||||
|
||||
#include <_mingw_unicode.h>
|
||||
#include <specstrings.h>
|
||||
|
||||
#ifndef WINSHELLAPI
|
||||
#ifndef _SHELL32_
|
||||
#define WINSHELLAPI DECLSPEC_IMPORT
|
||||
#else
|
||||
#define WINSHELLAPI
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef SHSTDAPI
|
||||
#ifndef _SHELL32_
|
||||
#ifdef __cplusplus
|
||||
#define SHSTDAPI EXTERN_C DECLSPEC_IMPORT HRESULT STDAPICALLTYPE
|
||||
#define SHSTDAPI_(type) EXTERN_C DECLSPEC_IMPORT type STDAPICALLTYPE
|
||||
#else
|
||||
#define SHSTDAPI DECLSPEC_IMPORT HRESULT STDAPICALLTYPE
|
||||
#define SHSTDAPI_(type) DECLSPEC_IMPORT type STDAPICALLTYPE
|
||||
#endif
|
||||
#else
|
||||
#define SHSTDAPI STDAPI
|
||||
#define SHSTDAPI_(type) STDAPI_(type)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef SHDOCAPI
|
||||
#ifndef _SHDOCVW_
|
||||
#ifdef __cplusplus
|
||||
#define SHDOCAPI EXTERN_C DECLSPEC_IMPORT HRESULT STDAPICALLTYPE
|
||||
#define SHDOCAPI_(type) EXTERN_C DECLSPEC_IMPORT type STDAPICALLTYPE
|
||||
#else
|
||||
#define SHDOCAPI DECLSPEC_IMPORT HRESULT STDAPICALLTYPE
|
||||
#define SHDOCAPI_(type) DECLSPEC_IMPORT type STDAPICALLTYPE
|
||||
#endif
|
||||
#else
|
||||
#define SHDOCAPI STDAPI
|
||||
#define SHDOCAPI_(type) STDAPI_(type)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _WIN64
|
||||
#include <pshpack1.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
|
||||
DECLARE_HANDLE (HDROP);
|
||||
|
||||
#define DragQueryFile __MINGW_NAME_AW(DragQueryFile)
|
||||
#define ShellExecute __MINGW_NAME_AW(ShellExecute)
|
||||
#define FindExecutable __MINGW_NAME_AW(FindExecutable)
|
||||
#define ShellAbout __MINGW_NAME_AW(ShellAbout)
|
||||
#define ExtractAssociatedIcon __MINGW_NAME_AW(ExtractAssociatedIcon)
|
||||
#define ExtractAssociatedIconEx __MINGW_NAME_AW(ExtractAssociatedIconEx)
|
||||
#define ExtractIcon __MINGW_NAME_AW(ExtractIcon)
|
||||
|
||||
SHSTDAPI_(UINT) DragQueryFileA (HDROP hDrop, UINT iFile, LPSTR lpszFile, UINT cch);
|
||||
SHSTDAPI_(UINT) DragQueryFileW (HDROP hDrop, UINT iFile, LPWSTR lpszFile, UINT cch);
|
||||
SHSTDAPI_(WINBOOL) DragQueryPoint (HDROP hDrop, POINT *ppt);
|
||||
SHSTDAPI_(void) DragFinish (HDROP hDrop);
|
||||
SHSTDAPI_(void) DragAcceptFiles (HWND hWnd, WINBOOL fAccept);
|
||||
SHSTDAPI_(HINSTANCE) ShellExecuteA (HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT nShowCmd);
|
||||
SHSTDAPI_(HINSTANCE) ShellExecuteW (HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd);
|
||||
SHSTDAPI_(HINSTANCE) FindExecutableA (LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResult);
|
||||
SHSTDAPI_(HINSTANCE) FindExecutableW (LPCWSTR lpFile, LPCWSTR lpDirectory, LPWSTR lpResult);
|
||||
SHSTDAPI_(LPWSTR *) CommandLineToArgvW (LPCWSTR lpCmdLine, int *pNumArgs);
|
||||
SHSTDAPI_(INT) ShellAboutA (HWND hWnd, LPCSTR szApp, LPCSTR szOtherStuff, HICON hIcon);
|
||||
SHSTDAPI_(INT) ShellAboutW (HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff, HICON hIcon);
|
||||
SHSTDAPI_(HICON) DuplicateIcon (HINSTANCE hInst, HICON hIcon);
|
||||
SHSTDAPI_(HICON) ExtractAssociatedIconA (HINSTANCE hInst, LPSTR pszIconPath, WORD *piIcon);
|
||||
SHSTDAPI_(HICON) ExtractAssociatedIconW (HINSTANCE hInst, LPWSTR pszIconPath, WORD *piIcon);
|
||||
SHSTDAPI_(HICON) ExtractAssociatedIconExA (HINSTANCE hInst, LPSTR pszIconPath, WORD *piIconIndex, WORD *piIconId);
|
||||
SHSTDAPI_(HICON) ExtractAssociatedIconExW (HINSTANCE hInst, LPWSTR pszIconPath, WORD *piIconIndex, WORD *piIconId);
|
||||
SHSTDAPI_(HICON) ExtractIconA (HINSTANCE hInst, LPCSTR pszExeFileName, UINT nIconIndex);
|
||||
SHSTDAPI_(HICON) ExtractIconW (HINSTANCE hInst, LPCWSTR pszExeFileName, UINT nIconIndex);
|
||||
|
||||
typedef struct _DRAGINFOA {
|
||||
UINT uSize;
|
||||
POINT pt;
|
||||
WINBOOL fNC;
|
||||
LPSTR lpFileList;
|
||||
DWORD grfKeyState;
|
||||
} DRAGINFOA,*LPDRAGINFOA;
|
||||
|
||||
typedef struct _DRAGINFOW {
|
||||
UINT uSize;
|
||||
POINT pt;
|
||||
WINBOOL fNC;
|
||||
LPWSTR lpFileList;
|
||||
DWORD grfKeyState;
|
||||
} DRAGINFOW,*LPDRAGINFOW;
|
||||
|
||||
__MINGW_TYPEDEF_AW(DRAGINFO)
|
||||
__MINGW_TYPEDEF_AW(LPDRAGINFO)
|
||||
|
||||
#define ABM_NEW 0x00000000
|
||||
#define ABM_REMOVE 0x00000001
|
||||
#define ABM_QUERYPOS 0x00000002
|
||||
#define ABM_SETPOS 0x00000003
|
||||
#define ABM_GETSTATE 0x00000004
|
||||
#define ABM_GETTASKBARPOS 0x00000005
|
||||
#define ABM_ACTIVATE 0x00000006
|
||||
#define ABM_GETAUTOHIDEBAR 0x00000007
|
||||
#define ABM_SETAUTOHIDEBAR 0x00000008
|
||||
|
||||
#define ABM_WINDOWPOSCHANGED 0x0000009
|
||||
#define ABM_SETSTATE 0x0000000a
|
||||
#if NTDDI_VERSION >= 0x06020000
|
||||
#define ABM_GETAUTOHIDEBAREX 0x0000000b
|
||||
#define ABM_SETAUTOHIDEBAREX 0x0000000c
|
||||
#endif
|
||||
|
||||
#define ABN_STATECHANGE 0x0000000
|
||||
#define ABN_POSCHANGED 0x0000001
|
||||
#define ABN_FULLSCREENAPP 0x0000002
|
||||
#define ABN_WINDOWARRANGE 0x0000003
|
||||
|
||||
#define ABS_AUTOHIDE 0x0000001
|
||||
#define ABS_ALWAYSONTOP 0x0000002
|
||||
|
||||
#define ABE_LEFT 0
|
||||
#define ABE_TOP 1
|
||||
#define ABE_RIGHT 2
|
||||
#define ABE_BOTTOM 3
|
||||
|
||||
typedef struct _AppBarData {
|
||||
DWORD cbSize;
|
||||
HWND hWnd;
|
||||
UINT uCallbackMessage;
|
||||
UINT uEdge;
|
||||
RECT rc;
|
||||
LPARAM lParam;
|
||||
} APPBARDATA,*PAPPBARDATA;
|
||||
|
||||
SHSTDAPI_(UINT_PTR) SHAppBarMessage (DWORD dwMessage, PAPPBARDATA pData);
|
||||
SHSTDAPI_(DWORD) DoEnvironmentSubstA (LPSTR pszSrc, UINT cchSrc);
|
||||
SHSTDAPI_(DWORD) DoEnvironmentSubstW (LPWSTR pszSrc, UINT cchSrc);
|
||||
SHSTDAPI_(UINT) ExtractIconExA (LPCSTR lpszFile, int nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons);
|
||||
SHSTDAPI_(UINT) ExtractIconExW (LPCWSTR lpszFile, int nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons);
|
||||
|
||||
#define DoEnvironmentSubst __MINGW_NAME_AW(DoEnvironmentSubst)
|
||||
#define ExtractIconEx __MINGW_NAME_AW(ExtractIconEx)
|
||||
|
||||
#define EIRESID(x) (-1 * (int)(x))
|
||||
|
||||
#define FO_MOVE 0x1
|
||||
#define FO_COPY 0x2
|
||||
#define FO_DELETE 0x3
|
||||
#define FO_RENAME 0x4
|
||||
|
||||
#define FOF_MULTIDESTFILES 0x1
|
||||
#define FOF_CONFIRMMOUSE 0x2
|
||||
#define FOF_SILENT 0x4
|
||||
#define FOF_RENAMEONCOLLISION 0x8
|
||||
#define FOF_NOCONFIRMATION 0x10
|
||||
#define FOF_WANTMAPPINGHANDLE 0x20
|
||||
#define FOF_ALLOWUNDO 0x40
|
||||
#define FOF_FILESONLY 0x80
|
||||
#define FOF_SIMPLEPROGRESS 0x100
|
||||
#define FOF_NOCONFIRMMKDIR 0x200
|
||||
#define FOF_NOERRORUI 0x400
|
||||
#define FOF_NOCOPYSECURITYATTRIBS 0x800
|
||||
#define FOF_NORECURSION 0x1000
|
||||
#define FOF_NO_CONNECTED_ELEMENTS 0x2000
|
||||
#define FOF_WANTNUKEWARNING 0x4000
|
||||
#define FOF_NORECURSEREPARSE 0x8000
|
||||
|
||||
#define FOF_NO_UI (FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR)
|
||||
|
||||
typedef WORD FILEOP_FLAGS;
|
||||
|
||||
#define PO_DELETE 0x0013
|
||||
#define PO_RENAME 0x0014
|
||||
#define PO_PORTCHANGE 0x0020
|
||||
|
||||
#define PO_REN_PORT 0x0034
|
||||
|
||||
typedef WORD PRINTEROP_FLAGS;
|
||||
|
||||
typedef struct _SHFILEOPSTRUCTA {
|
||||
HWND hwnd;
|
||||
UINT wFunc;
|
||||
LPCSTR pFrom;
|
||||
LPCSTR pTo;
|
||||
FILEOP_FLAGS fFlags;
|
||||
WINBOOL fAnyOperationsAborted;
|
||||
LPVOID hNameMappings;
|
||||
PCSTR lpszProgressTitle;
|
||||
} SHFILEOPSTRUCTA,*LPSHFILEOPSTRUCTA;
|
||||
|
||||
typedef struct _SHFILEOPSTRUCTW {
|
||||
HWND hwnd;
|
||||
UINT wFunc;
|
||||
LPCWSTR pFrom;
|
||||
LPCWSTR pTo;
|
||||
FILEOP_FLAGS fFlags;
|
||||
WINBOOL fAnyOperationsAborted;
|
||||
LPVOID hNameMappings;
|
||||
PCWSTR lpszProgressTitle;
|
||||
} SHFILEOPSTRUCTW,*LPSHFILEOPSTRUCTW;
|
||||
|
||||
__MINGW_TYPEDEF_AW(SHFILEOPSTRUCT)
|
||||
__MINGW_TYPEDEF_AW(LPSHFILEOPSTRUCT)
|
||||
|
||||
SHSTDAPI_(int) SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp);
|
||||
SHSTDAPI_(int) SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp);
|
||||
|
||||
#define SHFileOperation __MINGW_NAME_AW(SHFileOperation)
|
||||
|
||||
SHSTDAPI_(void) SHFreeNameMappings (HANDLE hNameMappings);
|
||||
|
||||
typedef struct _SHNAMEMAPPINGA {
|
||||
LPSTR pszOldPath;
|
||||
LPSTR pszNewPath;
|
||||
int cchOldPath;
|
||||
int cchNewPath;
|
||||
} SHNAMEMAPPINGA,*LPSHNAMEMAPPINGA;
|
||||
|
||||
typedef struct _SHNAMEMAPPINGW {
|
||||
LPWSTR pszOldPath;
|
||||
LPWSTR pszNewPath;
|
||||
int cchOldPath;
|
||||
int cchNewPath;
|
||||
} SHNAMEMAPPINGW,*LPSHNAMEMAPPINGW;
|
||||
|
||||
|
||||
__MINGW_TYPEDEF_AW(SHNAMEMAPPING)
|
||||
__MINGW_TYPEDEF_AW(LPSHNAMEMAPPING)
|
||||
|
||||
#define SE_ERR_FNF 2
|
||||
#define SE_ERR_PNF 3
|
||||
#define SE_ERR_ACCESSDENIED 5
|
||||
#define SE_ERR_OOM 8
|
||||
#define SE_ERR_DLLNOTFOUND 32
|
||||
|
||||
#define SE_ERR_SHARE 26
|
||||
#define SE_ERR_ASSOCINCOMPLETE 27
|
||||
#define SE_ERR_DDETIMEOUT 28
|
||||
#define SE_ERR_DDEFAIL 29
|
||||
#define SE_ERR_DDEBUSY 30
|
||||
#define SE_ERR_NOASSOC 31
|
||||
|
||||
#define SEE_MASK_DEFAULT 0x0
|
||||
#define SEE_MASK_CLASSNAME 0x1
|
||||
#define SEE_MASK_CLASSKEY 0x3
|
||||
|
||||
#define SEE_MASK_IDLIST 0x4
|
||||
#define SEE_MASK_INVOKEIDLIST 0xc
|
||||
#if NTDDI_VERSION < 0x06000000
|
||||
#define SEE_MASK_ICON 0x10
|
||||
#endif
|
||||
#define SEE_MASK_HOTKEY 0x20
|
||||
#define SEE_MASK_NOCLOSEPROCESS 0x40
|
||||
#define SEE_MASK_CONNECTNETDRV 0x80
|
||||
#define SEE_MASK_NOASYNC 0x100
|
||||
#define SEE_MASK_FLAG_DDEWAIT SEE_MASK_NOASYNC
|
||||
#define SEE_MASK_DOENVSUBST 0x200
|
||||
#define SEE_MASK_FLAG_NO_UI 0x400
|
||||
#define SEE_MASK_UNICODE 0x4000
|
||||
#define SEE_MASK_NO_CONSOLE 0x8000
|
||||
#define SEE_MASK_ASYNCOK 0x100000
|
||||
#define SEE_MASK_HMONITOR 0x200000
|
||||
#define SEE_MASK_NOZONECHECKS 0x800000
|
||||
#define SEE_MASK_NOQUERYCLASSSTORE 0x1000000
|
||||
#define SEE_MASK_WAITFORINPUTIDLE 0x2000000
|
||||
#define SEE_MASK_FLAG_LOG_USAGE 0x4000000
|
||||
#if NTDDI_VERSION >= 0x06020000
|
||||
#define SEE_MASK_FLAG_HINST_IS_SITE 0x8000000
|
||||
#endif
|
||||
|
||||
#ifndef DUMMYUNIONNAME
|
||||
#ifdef NONAMELESSUNION
|
||||
#define DUMMYUNIONNAME u
|
||||
#define DUMMYUNIONNAME2 u2
|
||||
#define DUMMYUNIONNAME3 u3
|
||||
#define DUMMYUNIONNAME4 u4
|
||||
#define DUMMYUNIONNAME5 u5
|
||||
#else
|
||||
#define DUMMYUNIONNAME
|
||||
#define DUMMYUNIONNAME2
|
||||
#define DUMMYUNIONNAME3
|
||||
#define DUMMYUNIONNAME4
|
||||
#define DUMMYUNIONNAME5
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||
|
||||
typedef struct _SHELLEXECUTEINFOA {
|
||||
DWORD cbSize;
|
||||
ULONG fMask;
|
||||
HWND hwnd;
|
||||
LPCSTR lpVerb;
|
||||
LPCSTR lpFile;
|
||||
LPCSTR lpParameters;
|
||||
LPCSTR lpDirectory;
|
||||
int nShow;
|
||||
HINSTANCE hInstApp;
|
||||
void *lpIDList;
|
||||
LPCSTR lpClass;
|
||||
HKEY hkeyClass;
|
||||
DWORD dwHotKey;
|
||||
__C89_NAMELESS union {
|
||||
HANDLE hIcon;
|
||||
HANDLE hMonitor;
|
||||
} DUMMYUNIONNAME;
|
||||
HANDLE hProcess;
|
||||
} SHELLEXECUTEINFOA,*LPSHELLEXECUTEINFOA;
|
||||
|
||||
typedef struct _SHELLEXECUTEINFOW {
|
||||
DWORD cbSize;
|
||||
ULONG fMask;
|
||||
HWND hwnd;
|
||||
LPCWSTR lpVerb;
|
||||
LPCWSTR lpFile;
|
||||
LPCWSTR lpParameters;
|
||||
LPCWSTR lpDirectory;
|
||||
int nShow;
|
||||
HINSTANCE hInstApp;
|
||||
void *lpIDList;
|
||||
LPCWSTR lpClass;
|
||||
HKEY hkeyClass;
|
||||
DWORD dwHotKey;
|
||||
__C89_NAMELESS union {
|
||||
HANDLE hIcon;
|
||||
HANDLE hMonitor;
|
||||
} DUMMYUNIONNAME;
|
||||
HANDLE hProcess;
|
||||
} SHELLEXECUTEINFOW,*LPSHELLEXECUTEINFOW;
|
||||
|
||||
__MINGW_TYPEDEF_AW(SHELLEXECUTEINFO)
|
||||
__MINGW_TYPEDEF_AW(LPSHELLEXECUTEINFO)
|
||||
|
||||
SHSTDAPI_(WINBOOL) ShellExecuteExA (SHELLEXECUTEINFOA *pExecInfo);
|
||||
SHSTDAPI_(WINBOOL) ShellExecuteExW (SHELLEXECUTEINFOW *pExecInfo);
|
||||
|
||||
#define ShellExecuteEx __MINGW_NAME_AW(ShellExecuteEx)
|
||||
|
||||
typedef struct _SHCREATEPROCESSINFOW {
|
||||
DWORD cbSize;
|
||||
ULONG fMask;
|
||||
HWND hwnd;
|
||||
LPCWSTR pszFile;
|
||||
LPCWSTR pszParameters;
|
||||
LPCWSTR pszCurrentDirectory;
|
||||
HANDLE hUserToken;
|
||||
LPSECURITY_ATTRIBUTES lpProcessAttributes;
|
||||
LPSECURITY_ATTRIBUTES lpThreadAttributes;
|
||||
WINBOOL bInheritHandles;
|
||||
DWORD dwCreationFlags;
|
||||
LPSTARTUPINFOW lpStartupInfo;
|
||||
LPPROCESS_INFORMATION lpProcessInformation;
|
||||
} SHCREATEPROCESSINFOW,*PSHCREATEPROCESSINFOW;
|
||||
|
||||
SHSTDAPI_(WINBOOL) SHCreateProcessAsUserW (PSHCREATEPROCESSINFOW pscpi);
|
||||
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
SHSTDAPI SHEvaluateSystemCommandTemplate (PCWSTR pszCmdTemplate, PWSTR *ppszApplication, PWSTR *ppszCommandLine, PWSTR *ppszParameters);
|
||||
|
||||
typedef enum ASSOCCLASS {
|
||||
ASSOCCLASS_SHELL_KEY = 0,
|
||||
ASSOCCLASS_PROGID_KEY,
|
||||
ASSOCCLASS_PROGID_STR,
|
||||
ASSOCCLASS_CLSID_KEY,
|
||||
ASSOCCLASS_CLSID_STR,
|
||||
ASSOCCLASS_APP_KEY,
|
||||
ASSOCCLASS_APP_STR,
|
||||
ASSOCCLASS_SYSTEM_STR,
|
||||
ASSOCCLASS_FOLDER,
|
||||
ASSOCCLASS_STAR,
|
||||
#if NTDDI_VERSION >= 0x06020000
|
||||
ASSOCCLASS_FIXED_PROGID_STR,
|
||||
ASSOCCLASS_PROTOCOL_STR,
|
||||
#endif
|
||||
} ASSOCCLASS;
|
||||
|
||||
typedef struct ASSOCIATIONELEMENT {
|
||||
ASSOCCLASS ac;
|
||||
HKEY hkClass;
|
||||
PCWSTR pszClass;
|
||||
} ASSOCIATIONELEMENT;
|
||||
|
||||
SHSTDAPI AssocCreateForClasses (const ASSOCIATIONELEMENT *rgClasses, ULONG cClasses, REFIID riid, void **ppv);
|
||||
#endif
|
||||
|
||||
typedef struct _SHQUERYRBINFO {
|
||||
DWORD cbSize;
|
||||
__MINGW_EXTENSION __int64 i64Size;
|
||||
__MINGW_EXTENSION __int64 i64NumItems;
|
||||
} SHQUERYRBINFO,*LPSHQUERYRBINFO;
|
||||
|
||||
#define SHERB_NOCONFIRMATION 0x00000001
|
||||
#define SHERB_NOPROGRESSUI 0x00000002
|
||||
#define SHERB_NOSOUND 0x00000004
|
||||
|
||||
SHSTDAPI SHQueryRecycleBinA (LPCSTR pszRootPath, LPSHQUERYRBINFO pSHQueryRBInfo);
|
||||
SHSTDAPI SHQueryRecycleBinW (LPCWSTR pszRootPath, LPSHQUERYRBINFO pSHQueryRBInfo);
|
||||
|
||||
#define SHQueryRecycleBin __MINGW_NAME_AW(SHQueryRecycleBin)
|
||||
|
||||
SHSTDAPI SHEmptyRecycleBinA (HWND hwnd, LPCSTR pszRootPath, DWORD dwFlags);
|
||||
SHSTDAPI SHEmptyRecycleBinW (HWND hwnd, LPCWSTR pszRootPath, DWORD dwFlags);
|
||||
|
||||
#define SHEmptyRecycleBin __MINGW_NAME_AW(SHEmptyRecycleBin)
|
||||
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
typedef enum {
|
||||
QUNS_NOT_PRESENT = 1,
|
||||
QUNS_BUSY = 2,
|
||||
QUNS_RUNNING_D3D_FULL_SCREEN = 3,
|
||||
QUNS_PRESENTATION_MODE = 4,
|
||||
QUNS_ACCEPTS_NOTIFICATIONS = 5
|
||||
#if NTDDI_VERSION >= 0x06010000
|
||||
, QUNS_QUIET_TIME = 6
|
||||
#endif
|
||||
#if NTDDI_VERSION >= 0x06020000
|
||||
, QUNS_APP = 7
|
||||
#endif
|
||||
} QUERY_USER_NOTIFICATION_STATE;
|
||||
|
||||
SHSTDAPI SHQueryUserNotificationState (QUERY_USER_NOTIFICATION_STATE *pquns);
|
||||
#endif
|
||||
|
||||
#if NTDDI_VERSION >= 0x06010000
|
||||
SHSTDAPI SHGetPropertyStoreForWindow (HWND hwnd, REFIID riid, void **ppv);
|
||||
#endif
|
||||
|
||||
#endif /* WINAPI_PARTITION_DESKTOP. */
|
||||
|
||||
typedef struct _NOTIFYICONDATAA {
|
||||
DWORD cbSize;
|
||||
HWND hWnd;
|
||||
UINT uID;
|
||||
UINT uFlags;
|
||||
UINT uCallbackMessage;
|
||||
HICON hIcon;
|
||||
CHAR szTip[128];
|
||||
DWORD dwState;
|
||||
DWORD dwStateMask;
|
||||
CHAR szInfo[256];
|
||||
__C89_NAMELESS union {
|
||||
UINT uTimeout;
|
||||
UINT uVersion;
|
||||
} DUMMYUNIONNAME;
|
||||
CHAR szInfoTitle[64];
|
||||
DWORD dwInfoFlags;
|
||||
GUID guidItem;
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
HICON hBalloonIcon;
|
||||
#endif
|
||||
} NOTIFYICONDATAA,*PNOTIFYICONDATAA;
|
||||
|
||||
typedef struct _NOTIFYICONDATAW {
|
||||
DWORD cbSize;
|
||||
HWND hWnd;
|
||||
UINT uID;
|
||||
UINT uFlags;
|
||||
UINT uCallbackMessage;
|
||||
HICON hIcon;
|
||||
WCHAR szTip[128];
|
||||
DWORD dwState;
|
||||
DWORD dwStateMask;
|
||||
WCHAR szInfo[256];
|
||||
__C89_NAMELESS union {
|
||||
UINT uTimeout;
|
||||
UINT uVersion;
|
||||
} DUMMYUNIONNAME;
|
||||
WCHAR szInfoTitle[64];
|
||||
DWORD dwInfoFlags;
|
||||
GUID guidItem;
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
HICON hBalloonIcon;
|
||||
#endif
|
||||
} NOTIFYICONDATAW,*PNOTIFYICONDATAW;
|
||||
|
||||
__MINGW_TYPEDEF_AW(NOTIFYICONDATA)
|
||||
__MINGW_TYPEDEF_AW(PNOTIFYICONDATA)
|
||||
|
||||
#define NOTIFYICONDATAA_V1_SIZE FIELD_OFFSET (NOTIFYICONDATAA, szTip[64])
|
||||
#define NOTIFYICONDATAW_V1_SIZE FIELD_OFFSET (NOTIFYICONDATAW, szTip[64])
|
||||
#define NOTIFYICONDATAA_V2_SIZE FIELD_OFFSET (NOTIFYICONDATAA, guidItem)
|
||||
#define NOTIFYICONDATAW_V2_SIZE FIELD_OFFSET (NOTIFYICONDATAW, guidItem)
|
||||
#define NOTIFYICONDATAA_V3_SIZE FIELD_OFFSET (NOTIFYICONDATAA, hBalloonIcon)
|
||||
#define NOTIFYICONDATAW_V3_SIZE FIELD_OFFSET (NOTIFYICONDATAW, hBalloonIcon)
|
||||
|
||||
#define NOTIFYICONDATA_V1_SIZE __MINGW_NAME_AW_EXT(NOTIFYICONDATA,_V1_SIZE)
|
||||
#define NOTIFYICONDATA_V2_SIZE __MINGW_NAME_AW_EXT(NOTIFYICONDATA,_V2_SIZE)
|
||||
#define NOTIFYICONDATA_V3_SIZE __MINGW_NAME_AW_EXT(NOTIFYICONDATA,_V3_SIZE)
|
||||
|
||||
#define NIN_SELECT (WM_USER + 0)
|
||||
#define NINF_KEY 0x1
|
||||
#define NIN_KEYSELECT (NIN_SELECT | NINF_KEY)
|
||||
|
||||
#define NIN_BALLOONSHOW (WM_USER + 2)
|
||||
#define NIN_BALLOONHIDE (WM_USER + 3)
|
||||
#define NIN_BALLOONTIMEOUT (WM_USER + 4)
|
||||
#define NIN_BALLOONUSERCLICK (WM_USER + 5)
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
#define NIN_POPUPOPEN (WM_USER + 6)
|
||||
#define NIN_POPUPCLOSE (WM_USER + 7)
|
||||
#endif
|
||||
|
||||
#define NIM_ADD 0x00000000
|
||||
#define NIM_MODIFY 0x00000001
|
||||
#define NIM_DELETE 0x00000002
|
||||
#define NIM_SETFOCUS 0x00000003
|
||||
#define NIM_SETVERSION 0x00000004
|
||||
|
||||
#define NOTIFYICON_VERSION 3
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
#define NOTIFYICON_VERSION_4 4
|
||||
#endif
|
||||
|
||||
#define NIF_MESSAGE 0x00000001
|
||||
#define NIF_ICON 0x00000002
|
||||
#define NIF_TIP 0x00000004
|
||||
#define NIF_STATE 0x00000008
|
||||
#define NIF_INFO 0x00000010
|
||||
#if _WIN32_IE >= 0x600
|
||||
#define NIF_GUID 0x00000020
|
||||
#endif
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
#define NIF_REALTIME 0x00000040
|
||||
#define NIF_SHOWTIP 0x00000080
|
||||
#endif
|
||||
|
||||
#define NIS_HIDDEN 0x00000001
|
||||
#define NIS_SHAREDICON 0x00000002
|
||||
|
||||
#define NIIF_NONE 0x00000000
|
||||
#define NIIF_INFO 0x00000001
|
||||
#define NIIF_WARNING 0x00000002
|
||||
#define NIIF_ERROR 0x00000003
|
||||
#define NIIF_USER 0x00000004
|
||||
#define NIIF_ICON_MASK 0x0000000f
|
||||
#define NIIF_NOSOUND 0x00000010
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
#define NIIF_LARGE_ICON 0x00000020
|
||||
#endif
|
||||
#if NTDDI_VERSION >= 0x06010000
|
||||
#define NIIF_RESPECT_QUIET_TIME 0x00000080
|
||||
#endif
|
||||
|
||||
typedef struct _NOTIFYICONIDENTIFIER {
|
||||
DWORD cbSize;
|
||||
HWND hWnd;
|
||||
UINT uID;
|
||||
GUID guidItem;
|
||||
} NOTIFYICONIDENTIFIER,*PNOTIFYICONIDENTIFIER;
|
||||
|
||||
SHSTDAPI_(WINBOOL) Shell_NotifyIconA (DWORD dwMessage, PNOTIFYICONDATAA lpData);
|
||||
SHSTDAPI_(WINBOOL) Shell_NotifyIconW (DWORD dwMessage, PNOTIFYICONDATAW lpData);
|
||||
|
||||
#define Shell_NotifyIcon __MINGW_NAME_AW(Shell_NotifyIcon)
|
||||
|
||||
#if NTDDI_VERSION >= 0x06010000
|
||||
SHSTDAPI Shell_NotifyIconGetRect (const NOTIFYICONIDENTIFIER *identifier, RECT *iconLocation);
|
||||
#endif
|
||||
|
||||
#ifndef SHFILEINFO_DEFINED
|
||||
#define SHFILEINFO_DEFINED
|
||||
|
||||
typedef struct _SHFILEINFOA {
|
||||
HICON hIcon;
|
||||
int iIcon;
|
||||
DWORD dwAttributes;
|
||||
CHAR szDisplayName[MAX_PATH];
|
||||
CHAR szTypeName[80];
|
||||
} SHFILEINFOA;
|
||||
|
||||
typedef struct _SHFILEINFOW {
|
||||
HICON hIcon;
|
||||
int iIcon;
|
||||
DWORD dwAttributes;
|
||||
WCHAR szDisplayName[MAX_PATH];
|
||||
WCHAR szTypeName[80];
|
||||
} SHFILEINFOW;
|
||||
|
||||
__MINGW_TYPEDEF_AW(SHFILEINFO)
|
||||
#endif
|
||||
|
||||
#define SHGFI_ICON 0x000000100
|
||||
#define SHGFI_DISPLAYNAME 0x000000200
|
||||
#define SHGFI_TYPENAME 0x000000400
|
||||
#define SHGFI_ATTRIBUTES 0x000000800
|
||||
#define SHGFI_ICONLOCATION 0x000001000
|
||||
#define SHGFI_EXETYPE 0x000002000
|
||||
#define SHGFI_SYSICONINDEX 0x000004000
|
||||
#define SHGFI_LINKOVERLAY 0x000008000
|
||||
#define SHGFI_SELECTED 0x000010000
|
||||
#define SHGFI_ATTR_SPECIFIED 0x000020000
|
||||
|
||||
#define SHGFI_LARGEICON 0x000000000
|
||||
#define SHGFI_SMALLICON 0x000000001
|
||||
#define SHGFI_OPENICON 0x000000002
|
||||
#define SHGFI_SHELLICONSIZE 0x000000004
|
||||
#define SHGFI_PIDL 0x000000008
|
||||
#define SHGFI_USEFILEATTRIBUTES 0x000000010
|
||||
|
||||
#define SHGFI_ADDOVERLAYS 0x000000020
|
||||
#define SHGFI_OVERLAYINDEX 0x000000040
|
||||
|
||||
SHSTDAPI_(DWORD_PTR) SHGetFileInfoA (LPCSTR pszPath, DWORD dwFileAttributes, SHFILEINFOA *psfi, UINT cbFileInfo, UINT uFlags);
|
||||
SHSTDAPI_(DWORD_PTR) SHGetFileInfoW (LPCWSTR pszPath, DWORD dwFileAttributes, SHFILEINFOW *psfi, UINT cbFileInfo, UINT uFlags);
|
||||
|
||||
#define SHGetFileInfo __MINGW_NAME_AW(SHGetFileInfo)
|
||||
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
typedef struct _SHSTOCKICONINFO {
|
||||
DWORD cbSize;
|
||||
HICON hIcon;
|
||||
int iSysImageIndex;
|
||||
int iIcon;
|
||||
WCHAR szPath[MAX_PATH];
|
||||
} SHSTOCKICONINFO;
|
||||
|
||||
#define SHGSI_ICONLOCATION 0
|
||||
#define SHGSI_ICON SHGFI_ICON
|
||||
#define SHGSI_SYSICONINDEX SHGFI_SYSICONINDEX
|
||||
#define SHGSI_LINKOVERLAY SHGFI_LINKOVERLAY
|
||||
#define SHGSI_SELECTED SHGFI_SELECTED
|
||||
#define SHGSI_LARGEICON SHGFI_LARGEICON
|
||||
#define SHGSI_SMALLICON SHGFI_SMALLICON
|
||||
#define SHGSI_SHELLICONSIZE SHGFI_SHELLICONSIZE
|
||||
|
||||
typedef enum SHSTOCKICONID {
|
||||
SIID_DOCNOASSOC = 0,
|
||||
SIID_DOCASSOC = 1,
|
||||
SIID_APPLICATION = 2,
|
||||
SIID_FOLDER = 3,
|
||||
SIID_FOLDEROPEN = 4,
|
||||
SIID_DRIVE525 = 5,
|
||||
SIID_DRIVE35 = 6,
|
||||
SIID_DRIVEREMOVE = 7,
|
||||
SIID_DRIVEFIXED = 8,
|
||||
SIID_DRIVENET = 9,
|
||||
SIID_DRIVENETDISABLED = 10,
|
||||
SIID_DRIVECD = 11,
|
||||
SIID_DRIVERAM = 12,
|
||||
SIID_WORLD = 13,
|
||||
SIID_SERVER = 15,
|
||||
SIID_PRINTER = 16,
|
||||
SIID_MYNETWORK = 17,
|
||||
SIID_FIND = 22,
|
||||
SIID_HELP = 23,
|
||||
SIID_SHARE = 28,
|
||||
SIID_LINK = 29,
|
||||
SIID_SLOWFILE = 30,
|
||||
SIID_RECYCLER = 31,
|
||||
SIID_RECYCLERFULL = 32,
|
||||
SIID_MEDIACDAUDIO = 40,
|
||||
SIID_LOCK = 47,
|
||||
SIID_AUTOLIST = 49,
|
||||
SIID_PRINTERNET = 50,
|
||||
SIID_SERVERSHARE = 51,
|
||||
SIID_PRINTERFAX = 52,
|
||||
SIID_PRINTERFAXNET = 53,
|
||||
SIID_PRINTERFILE = 54,
|
||||
SIID_STACK = 55,
|
||||
SIID_MEDIASVCD = 56,
|
||||
SIID_STUFFEDFOLDER = 57,
|
||||
SIID_DRIVEUNKNOWN = 58,
|
||||
SIID_DRIVEDVD = 59,
|
||||
SIID_MEDIADVD = 60,
|
||||
SIID_MEDIADVDRAM = 61,
|
||||
SIID_MEDIADVDRW = 62,
|
||||
SIID_MEDIADVDR = 63,
|
||||
SIID_MEDIADVDROM = 64,
|
||||
SIID_MEDIACDAUDIOPLUS = 65,
|
||||
SIID_MEDIACDRW = 66,
|
||||
SIID_MEDIACDR = 67,
|
||||
SIID_MEDIACDBURN = 68,
|
||||
SIID_MEDIABLANKCD = 69,
|
||||
SIID_MEDIACDROM = 70,
|
||||
SIID_AUDIOFILES = 71,
|
||||
SIID_IMAGEFILES = 72,
|
||||
SIID_VIDEOFILES = 73,
|
||||
SIID_MIXEDFILES = 74,
|
||||
SIID_FOLDERBACK = 75,
|
||||
SIID_FOLDERFRONT = 76,
|
||||
SIID_SHIELD = 77,
|
||||
SIID_WARNING = 78,
|
||||
SIID_INFO = 79,
|
||||
SIID_ERROR = 80,
|
||||
SIID_KEY = 81,
|
||||
SIID_SOFTWARE = 82,
|
||||
SIID_RENAME = 83,
|
||||
SIID_DELETE = 84,
|
||||
SIID_MEDIAAUDIODVD = 85,
|
||||
SIID_MEDIAMOVIEDVD = 86,
|
||||
SIID_MEDIAENHANCEDCD = 87,
|
||||
SIID_MEDIAENHANCEDDVD = 88,
|
||||
SIID_MEDIAHDDVD = 89,
|
||||
SIID_MEDIABLURAY = 90,
|
||||
SIID_MEDIAVCD = 91,
|
||||
SIID_MEDIADVDPLUSR = 92,
|
||||
SIID_MEDIADVDPLUSRW = 93,
|
||||
SIID_DESKTOPPC = 94,
|
||||
SIID_MOBILEPC = 95,
|
||||
SIID_USERS = 96,
|
||||
SIID_MEDIASMARTMEDIA = 97,
|
||||
SIID_MEDIACOMPACTFLASH = 98,
|
||||
SIID_DEVICECELLPHONE = 99,
|
||||
SIID_DEVICECAMERA = 100,
|
||||
SIID_DEVICEVIDEOCAMERA = 101,
|
||||
SIID_DEVICEAUDIOPLAYER = 102,
|
||||
SIID_NETWORKCONNECT = 103,
|
||||
SIID_INTERNET = 104,
|
||||
SIID_ZIPFILE = 105,
|
||||
SIID_SETTINGS = 106,
|
||||
|
||||
SIID_DRIVEHDDVD = 132,
|
||||
SIID_DRIVEBD = 133,
|
||||
SIID_MEDIAHDDVDROM = 134,
|
||||
SIID_MEDIAHDDVDR = 135,
|
||||
SIID_MEDIAHDDVDRAM = 136,
|
||||
SIID_MEDIABDROM = 137,
|
||||
SIID_MEDIABDR = 138,
|
||||
SIID_MEDIABDRE = 139,
|
||||
SIID_CLUSTEREDDRIVE = 140,
|
||||
|
||||
SIID_MAX_ICONS = 175
|
||||
} SHSTOCKICONID;
|
||||
|
||||
#define SIID_INVALID ((SHSTOCKICONID)-1)
|
||||
|
||||
SHSTDAPI SHGetStockIconInfo (SHSTOCKICONID siid, UINT uFlags, SHSTOCKICONINFO *psii);
|
||||
#endif
|
||||
|
||||
#define SHGetDiskFreeSpace SHGetDiskFreeSpaceEx
|
||||
|
||||
SHSTDAPI_(WINBOOL) SHGetDiskFreeSpaceExA (LPCSTR pszDirectoryName, ULARGE_INTEGER *pulFreeBytesAvailableToCaller, ULARGE_INTEGER *pulTotalNumberOfBytes, ULARGE_INTEGER *pulTotalNumberOfFreeBytes);
|
||||
SHSTDAPI_(WINBOOL) SHGetDiskFreeSpaceExW (LPCWSTR pszDirectoryName, ULARGE_INTEGER *pulFreeBytesAvailableToCaller, ULARGE_INTEGER *pulTotalNumberOfBytes, ULARGE_INTEGER *pulTotalNumberOfFreeBytes);
|
||||
SHSTDAPI_(WINBOOL) SHGetNewLinkInfoA (LPCSTR pszLinkTo, LPCSTR pszDir, LPSTR pszName, WINBOOL *pfMustCopy, UINT uFlags);
|
||||
SHSTDAPI_(WINBOOL) SHGetNewLinkInfoW (LPCWSTR pszLinkTo, LPCWSTR pszDir, LPWSTR pszName, WINBOOL *pfMustCopy, UINT uFlags);
|
||||
|
||||
#define SHGetDiskFreeSpaceEx __MINGW_NAME_AW(SHGetDiskFreeSpaceEx)
|
||||
#define SHGetNewLinkInfo __MINGW_NAME_AW(SHGetNewLinkInfo)
|
||||
|
||||
#define SHGNLI_PIDL 0x000000001
|
||||
#define SHGNLI_PREFIXNAME 0x000000002
|
||||
#define SHGNLI_NOUNIQUE 0x000000004
|
||||
#define SHGNLI_NOLNK 0x000000008
|
||||
#if _WIN32_IE >= 0x0600
|
||||
#define SHGNLI_NOLOCNAME 0x000000010
|
||||
#endif
|
||||
#if NTDDI_VERSION >= 0x06010000
|
||||
#define SHGNLI_USEURLEXT 0x000000020
|
||||
#endif
|
||||
|
||||
#define PRINTACTION_OPEN 0
|
||||
#define PRINTACTION_PROPERTIES 1
|
||||
#define PRINTACTION_NETINSTALL 2
|
||||
#define PRINTACTION_NETINSTALLLINK 3
|
||||
#define PRINTACTION_TESTPAGE 4
|
||||
#define PRINTACTION_OPENNETPRN 5
|
||||
#define PRINTACTION_DOCUMENTDEFAULTS 6
|
||||
#define PRINTACTION_SERVERPROPERTIES 7
|
||||
|
||||
SHSTDAPI_(WINBOOL) SHInvokePrinterCommandA (HWND hwnd, UINT uAction, LPCSTR lpBuf1, LPCSTR lpBuf2, WINBOOL fModal);
|
||||
SHSTDAPI_(WINBOOL) SHInvokePrinterCommandW (HWND hwnd, UINT uAction, LPCWSTR lpBuf1, LPCWSTR lpBuf2, WINBOOL fModal);
|
||||
|
||||
#define SHInvokePrinterCommand __MINGW_NAME_AW(SHInvokePrinterCommand)
|
||||
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
typedef struct _OPEN_PRINTER_PROPS_INFOA {
|
||||
DWORD dwSize;
|
||||
LPSTR pszSheetName;
|
||||
UINT uSheetIndex;
|
||||
DWORD dwFlags;
|
||||
WINBOOL bModal;
|
||||
} OPEN_PRINTER_PROPS_INFOA,*POPEN_PRINTER_PROPS_INFOA;
|
||||
|
||||
typedef struct _OPEN_PRINTER_PROPS_INFOW {
|
||||
DWORD dwSize;
|
||||
LPWSTR pszSheetName;
|
||||
UINT uSheetIndex;
|
||||
DWORD dwFlags;
|
||||
WINBOOL bModal;
|
||||
} OPEN_PRINTER_PROPS_INFOW,*POPEN_PRINTER_PROPS_INFOW;
|
||||
|
||||
__MINGW_TYPEDEF_AW(OPEN_PRINTER_PROPS_INFO)
|
||||
__MINGW_TYPEDEF_AW(POPEN_PRINTER_PROPS_INFO)
|
||||
#define PRINT_PROP_FORCE_NAME 0x01
|
||||
#endif
|
||||
|
||||
SHSTDAPI SHLoadNonloadedIconOverlayIdentifiers (void);
|
||||
SHSTDAPI SHIsFileAvailableOffline (PCWSTR pwszPath, DWORD *pdwStatus);
|
||||
|
||||
#define OFFLINE_STATUS_LOCAL 0x0001
|
||||
#define OFFLINE_STATUS_REMOTE 0x0002
|
||||
#define OFFLINE_STATUS_INCOMPLETE 0x0004
|
||||
|
||||
SHSTDAPI SHSetLocalizedName (PCWSTR pszPath, PCWSTR pszResModule, int idsRes);
|
||||
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
SHSTDAPI SHRemoveLocalizedName (PCWSTR pszPath);
|
||||
SHSTDAPI SHGetLocalizedName (PCWSTR pszPath, PWSTR pszResModule, UINT cch, int *pidsRes);
|
||||
#endif
|
||||
|
||||
#ifndef _SHLWAPI_
|
||||
#define LWSTDAPIV_(type) EXTERN_C DECLSPEC_IMPORT type STDAPIVCALLTYPE
|
||||
#else
|
||||
#define LWSTDAPIV_(type) STDAPIV_ (type)
|
||||
#endif
|
||||
|
||||
LWSTDAPIV_ (int) ShellMessageBoxA (HINSTANCE hAppInst, HWND hWnd, LPCSTR lpcText, LPCSTR lpcTitle, UINT fuStyle,...);
|
||||
LWSTDAPIV_ (int) ShellMessageBoxW (HINSTANCE hAppInst, HWND hWnd, LPCWSTR lpcText, LPCWSTR lpcTitle, UINT fuStyle,...);
|
||||
|
||||
#define ShellMessageBox __MINGW_NAME_AW(ShellMessageBox)
|
||||
|
||||
SHSTDAPI_(WINBOOL) IsLFNDriveA (LPCSTR pszPath);
|
||||
SHSTDAPI_(WINBOOL) IsLFNDriveW (LPCWSTR pszPath);
|
||||
|
||||
#define IsLFNDrive __MINGW_NAME_AW(IsLFNDrive)
|
||||
|
||||
#if _WIN32_IE >= 0x0600
|
||||
STDAPI SHEnumerateUnreadMailAccountsA (HKEY hKeyUser, DWORD dwIndex, LPSTR pszMailAddress, int cchMailAddress);
|
||||
STDAPI SHEnumerateUnreadMailAccountsW (HKEY hKeyUser, DWORD dwIndex, LPWSTR pszMailAddress, int cchMailAddress);
|
||||
STDAPI SHGetUnreadMailCountA (HKEY hKeyUser, LPCSTR pszMailAddress, DWORD *pdwCount, FILETIME *pFileTime, LPSTR pszShellExecuteCommand, int cchShellExecuteCommand);
|
||||
STDAPI SHGetUnreadMailCountW (HKEY hKeyUser, LPCWSTR pszMailAddress, DWORD *pdwCount, FILETIME *pFileTime, LPWSTR pszShellExecuteCommand, int cchShellExecuteCommand);
|
||||
STDAPI SHSetUnreadMailCountA (LPCSTR pszMailAddress, DWORD dwCount, LPCSTR pszShellExecuteCommand);
|
||||
STDAPI SHSetUnreadMailCountW (LPCWSTR pszMailAddress, DWORD dwCount, LPCWSTR pszShellExecuteCommand);
|
||||
|
||||
#define SHEnumerateUnreadMailAccounts __MINGW_NAME_AW(SHEnumerateUnreadMailAccounts)
|
||||
#define SHGetUnreadMailCount __MINGW_NAME_AW(SHGetUnreadMailCount)
|
||||
#define SHSetUnreadMailCount __MINGW_NAME_AW(SHSetUnreadMailCount)
|
||||
|
||||
#endif
|
||||
#if _WIN32_IE >= 0x0601
|
||||
STDAPI_ (WINBOOL) SHTestTokenMembership (HANDLE hToken, ULONG ulRID);
|
||||
#endif
|
||||
|
||||
#if _WIN32_IE >= 0x0600
|
||||
SHSTDAPI SHGetImageList (int iImageList, REFIID riid, void **ppvObj);
|
||||
|
||||
#define SHIL_LARGE 0
|
||||
#define SHIL_SMALL 1
|
||||
#define SHIL_EXTRALARGE 2
|
||||
#define SHIL_SYSSMALL 3
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
#define SHIL_JUMBO 4
|
||||
#define SHIL_LAST SHIL_JUMBO
|
||||
#else
|
||||
#define SHIL_LAST SHIL_SYSSMALL
|
||||
#endif
|
||||
|
||||
typedef HRESULT (STDMETHODCALLTYPE *PFNCANSHAREFOLDERW) (PCWSTR pszPath);
|
||||
typedef HRESULT (STDMETHODCALLTYPE *PFNSHOWSHAREFOLDERUIW) (HWND hwndParent, PCWSTR pszPath);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef _WIN64
|
||||
#include <poppack.h>
|
||||
#endif
|
||||
|
||||
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
|
||||
#define WC_NETADDRESS L"msctls_netaddress"
|
||||
|
||||
SHSTDAPI_(WINBOOL) InitNetworkAddressControl (void);
|
||||
|
||||
#define NCM_GETADDRESS (WM_USER+1)
|
||||
#define NetAddr_GetAddress(hwnd, pv) (HRESULT)SNDMSG (hwnd, NCM_GETADDRESS, 0,(LPARAM)pv)
|
||||
|
||||
typedef struct tagNC_ADDRESS {
|
||||
struct NET_ADDRESS_INFO_ *pAddrInfo;
|
||||
USHORT PortNumber;
|
||||
BYTE PrefixLength;
|
||||
} NC_ADDRESS,*PNC_ADDRESS;
|
||||
|
||||
#define NCM_SETALLOWTYPE (WM_USER+2)
|
||||
#define NetAddr_SetAllowType(hwnd, addrMask) (HRESULT)SNDMSG (hwnd, NCM_SETALLOWTYPE,(WPARAM)addrMask, 0)
|
||||
|
||||
#define NCM_GETALLOWTYPE (WM_USER+3)
|
||||
#define NetAddr_GetAllowType(hwnd) (DWORD)SNDMSG (hwnd, NCM_GETALLOWTYPE, 0, 0)
|
||||
|
||||
#define NCM_DISPLAYERRORTIP (WM_USER+4)
|
||||
#define NetAddr_DisplayErrorTip(hwnd) (HRESULT)SNDMSG (hwnd, NCM_DISPLAYERRORTIP, 0, 0)
|
||||
#endif
|
||||
|
||||
#if NTDDI_VERSION >= 0x06000000
|
||||
STDAPI SHGetDriveMedia (PCWSTR pszDrive, DWORD *pdwMediaContent);
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
@ -7,6 +7,7 @@
|
||||
#define _INC_WS2IPDEF
|
||||
|
||||
#include <in6addr.h>
|
||||
#include <ws2def.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -44,6 +45,7 @@ struct sockaddr_in6 {
|
||||
typedef struct sockaddr_in6 SOCKADDR_IN6;
|
||||
typedef struct sockaddr_in6 *PSOCKADDR_IN6;
|
||||
typedef struct sockaddr_in6 *LPSOCKADDR_IN6;
|
||||
typedef u_short ADDRESS_FAMILY;
|
||||
|
||||
typedef struct _INTERFACE_INFO {
|
||||
u_long iiFlags;
|
||||
|
@ -619,6 +619,7 @@ SetFileApisToOEM
|
||||
SetFileAttributesA
|
||||
SetFileAttributesW
|
||||
SetFilePointer
|
||||
SetFilePointerEx
|
||||
SetFileTime
|
||||
SetHandleContext
|
||||
SetHandleCount
|
||||
|
Loading…
Reference in New Issue
Block a user