Moved everything out of windows.h.

This commit is contained in:
Michael Veksler 1999-02-09 15:46:25 +00:00 committed by Alexandre Julliard
parent 0bdff36d38
commit 17822f452f
25 changed files with 4926 additions and 4912 deletions

View File

@ -3,6 +3,7 @@
#include "unknwn.h"
#include "mouse.h"
#include "windef.h" /* for MAX_PATH */
#define STDMETHOD(xfn) HRESULT (CALLBACK *fn##xfn)
#define STDMETHOD_(ret,xfn) ret (CALLBACK *fn##xfn)

View File

@ -1,11 +1,14 @@
/* Includefile for the decompression library, lzexpand
*
* Copyright 1996 Marcus Meissner
* FIXME: Who's copyright are the prototypes?
*/
#ifndef __WINE_LZEXPAND_H
#define __WINE_LZEXPAND_H
#include "winbase.h"
#define LZERROR_BADINHANDLE -1 /* -1 */
#define LZERROR_BADOUTHANDLE -2 /* -2 */
#define LZERROR_READ -3 /* -3 */
@ -15,4 +18,35 @@
#define LZERROR_BADVALUE -7 /* -7 */
#define LZERROR_UNKNOWNALG -8 /* -8 */
VOID WINAPI LZDone(void);
LONG WINAPI CopyLZFile16(HFILE16,HFILE16);
LONG WINAPI CopyLZFile32(HFILE32,HFILE32);
#define CopyLZFile WINELIB_NAME(CopyLZFile)
HFILE16 WINAPI LZOpenFile16(LPCSTR,LPOFSTRUCT,UINT16);
HFILE32 WINAPI LZOpenFile32A(LPCSTR,LPOFSTRUCT,UINT32);
HFILE32 WINAPI LZOpenFile32W(LPCWSTR,LPOFSTRUCT,UINT32);
#define LZOpenFile WINELIB_NAME_AW(LZOpenFile)
INT16 WINAPI LZRead16(HFILE16,LPVOID,UINT16);
INT32 WINAPI LZRead32(HFILE32,LPVOID,UINT32);
#define LZRead WINELIB_NAME(LZRead)
INT16 WINAPI LZStart16(void);
INT32 WINAPI LZStart32(void);
#define LZStart WINELIB_NAME(LZStart)
void WINAPI LZClose16(HFILE16);
void WINAPI LZClose32(HFILE32);
#define LZClose WINELIB_NAME(LZClose)
LONG WINAPI LZCopy16(HFILE16,HFILE16);
LONG WINAPI LZCopy32(HFILE32,HFILE32);
#define LZCopy WINELIB_NAME(LZCopy)
HFILE16 WINAPI LZInit16(HFILE16);
HFILE32 WINAPI LZInit32(HFILE32);
#define LZInit WINELIB_NAME(LZInit)
LONG WINAPI LZSeek16(HFILE16,LONG,INT16);
LONG WINAPI LZSeek32(HFILE32,LONG,INT32);
#define LZSeek WINELIB_NAME(LZSeek)
INT16 WINAPI GetExpandedName16(LPCSTR,LPSTR);
INT32 WINAPI GetExpandedName32A(LPCSTR,LPSTR);
INT32 WINAPI GetExpandedName32W(LPCWSTR,LPWSTR);
#define GetExpandedName WINELIB_NAME_AW(GetExpandedName)
#endif /* __WINE_LZEXPAND_H */

View File

@ -7,6 +7,8 @@
* Copyright 1997 Marcus Meissner
*/
#include "winbase.h"
/* assumes windows.h already included */
#ifdef __cplusplus
@ -206,6 +208,8 @@ BOOL32 WINAPI LookupAccountSid32A(LPCSTR,PSID,LPCSTR,LPDWORD,LPCSTR,LPDWORD,
BOOL32 WINAPI LookupAccountSid32W(LPCWSTR,PSID,LPCWSTR,LPDWORD,LPCWSTR,LPDWORD,
PSID_NAME_USE);
LPSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(LPSID);
INT32 WINAPI AccessResource32(HMODULE32,HRSRC32);
#define AccessResource WINELIB_NAME(AccessResource)
#ifdef __cplusplus
}

View File

@ -5,6 +5,8 @@
#ifndef __WINE_OLE2_H
#define __WINE_OLE2_H
#include "wintypes.h"
/* to be implemented */
/* FIXME: this should be defined somewhere in oleidl.h instead, should it be repeated here ? */
typedef LPVOID LPDROPTARGET;
@ -23,4 +25,11 @@ typedef struct tagOleMenuGroupWidths *LPOLEMENUGROUPWIDTHS32;
typedef HGLOBAL32 HOLEMENU32;
HRESULT WINAPI RegisterDragDrop16(HWND16,LPVOID);
HRESULT WINAPI RegisterDragDrop32(HWND32,LPVOID);
#define RegisterDragDrop WINELIB_NAME(RegisterDragDrop)
HRESULT WINAPI RevokeDragDrop16(HWND16);
HRESULT WINAPI RevokeDragDrop32(HWND32);
#define RevokeDragDrop WINELIB_NAME(RevokeDragDrop)
#endif /* __WINE_OLE2_H */

28
include/shellapi.h Normal file
View File

@ -0,0 +1,28 @@
#ifndef _WINE_SHELLAPI_H
#define _WINE_SHELLAPI_H
#include "wintypes.h"
HICON16 WINAPI ExtractIcon16(HINSTANCE16,LPCSTR,UINT16);
HICON32 WINAPI ExtractIcon32A(HINSTANCE32,LPCSTR,UINT32);
HICON32 WINAPI ExtractIcon32W(HINSTANCE32,LPCWSTR,UINT32);
#define ExtractIcon WINELIB_NAME_AW(ExtractIcon)
HICON16 WINAPI ExtractAssociatedIcon16(HINSTANCE16,LPSTR,LPWORD);
HICON32 WINAPI ExtractAssociatedIcon32A(HINSTANCE32,LPSTR,LPWORD);
HICON32 WINAPI ExtractAssociatedIcon32W(HINSTANCE32,LPWSTR,LPWORD);
#define ExtractAssociatedIcon WINELIB_NAME_AW(ExtractAssociatedIcon)
HINSTANCE16 WINAPI FindExecutable16(LPCSTR,LPCSTR,LPSTR);
HINSTANCE32 WINAPI FindExecutable32A(LPCSTR,LPCSTR,LPSTR);
HINSTANCE32 WINAPI FindExecutable32W(LPCWSTR,LPCWSTR,LPWSTR);
#define FindExecutable WINELIB_NAME_AW(FindExecutable)
BOOL16 WINAPI ShellAbout16(HWND16,LPCSTR,LPCSTR,HICON16);
BOOL32 WINAPI ShellAbout32A(HWND32,LPCSTR,LPCSTR,HICON32);
BOOL32 WINAPI ShellAbout32W(HWND32,LPCWSTR,LPCWSTR,HICON32);
#define ShellAbout WINELIB_NAME_AW(ShellAbout)
HINSTANCE16 WINAPI ShellExecute16(HWND16,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT16);
HINSTANCE32 WINAPI ShellExecute32A(HWND32,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT32);
HINSTANCE32 WINAPI ShellExecute32W(HWND32,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT32);
#define ShellExecute WINELIB_NAME_AW(ShellExecute)
#endif /* _WINE_SHELLAPI_H */

View File

@ -8,7 +8,7 @@
#ifndef __WINE_VGA_H
#define __WINE_VGA_H
#include "wintypes.h"
#include "wingdi.h"
int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth);
int VGA_GetMode(unsigned*Height,unsigned*Width,unsigned*Depth);

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,8 @@
#ifndef __WINE_WINCON_H
#define __WINE_WINCON_H
#include "winbase.h" /* for COORD */
#define CTRL_C_EVENT 0
#define CTRL_BREAK_EVENT 1
#define CTRL_CLOSE_EVENT 2

19
include/windef.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef __INCLUDE_WINDEF_H
#define __INCLUDE_WINDEF_H
#include "wintypes.h"
#pragma pack(1)
/* FIXME: _MAX_PATH should be defined in stdlib.h and MAX_PATH in windef.h
* and mapiwin.h
*/
#define MAX_PATH 260
#define HFILE_ERROR16 ((HFILE16)-1)
#define HFILE_ERROR32 ((HFILE32)-1)
#define HFILE_ERROR WINELIB_NAME(HFILE_ERROR)
#pragma pack(4)
#endif /* __INCLUDE_WINDEF_H */

File diff suppressed because it is too large Load Diff

12
include/wine/keyboard16.h Normal file
View File

@ -0,0 +1,12 @@
#ifndef _KEYBOARD16_H
#define _KEYBOARD16_H
INT16 WINAPI ToAscii16(UINT16,UINT16,LPBYTE,LPVOID,UINT16);
WORD WINAPI VkKeyScan16(CHAR);
INT16 WINAPI AnsiToOem16(LPCSTR,LPSTR);
VOID WINAPI AnsiToOemBuff16(LPCSTR,LPSTR,UINT16);
INT16 WINAPI OemToAnsi16(LPCSTR,LPSTR);
VOID WINAPI OemToAnsiBuff16(LPCSTR,LPSTR,UINT16);
#endif /* _KEYBOARD16_H */

View File

@ -8,7 +8,7 @@
#define __WINE_WINE_OBJ_STORAGE_H
#include "winnt.h"
#include "winbase.h"
/*****************************************************************************

9
include/wine/shell16.h Normal file
View File

@ -0,0 +1,9 @@
#ifndef _SHELL16_H
#define _SHELL16_H
BOOL16 WINAPI AboutDlgProc16(HWND16,UINT16,WPARAM16,LPARAM);
BOOL32 WINAPI AboutDlgProc32(HWND32,UINT32,WPARAM32,LPARAM);
#define AboutDlgProc WINELIB_NAME(AboutDlgProc)
#endif /* _SHELL16_H */

7
include/wine/w32skrnl.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef _W32SKRNL_H
#define _W32SKRNL_H
#include "wintypes.h"
HTASK16 WINAPI GetCurrentTask(void);
LPSTR WINAPI GetWin32sDirectory(void);
DWORD WINAPI RtlNtStatusToDosError(DWORD error);
#endif /* _W32SKRNL_H */

212
include/wine/winbase16.h Normal file
View File

@ -0,0 +1,212 @@
#ifndef _INCLUDE_WINE_WINBASE16_H
#define _INCLUDE_WINE_WINBASE16_H
#include "wintypes.h"
#pragma pack(1)
typedef struct _SEGINFO {
UINT16 offSegment;
UINT16 cbSegment;
UINT16 flags;
UINT16 cbAlloc;
HGLOBAL16 h;
UINT16 alignShift;
UINT16 reserved[2];
} SEGINFO;
/* GetWinFlags */
#define WF_PMODE 0x0001
#define WF_CPU286 0x0002
#define WF_CPU386 0x0004
#define WF_CPU486 0x0008
#define WF_STANDARD 0x0010
#define WF_WIN286 0x0010
#define WF_ENHANCED 0x0020
#define WF_WIN386 0x0020
#define WF_CPU086 0x0040
#define WF_CPU186 0x0080
#define WF_LARGEFRAME 0x0100
#define WF_SMALLFRAME 0x0200
#define WF_80x87 0x0400
#define WF_PAGING 0x0800
#define WF_HASCPUID 0x2000
#define WF_WIN32WOW 0x4000 /* undoc */
#define WF_WLO 0x8000
#pragma pack(4)
HMODULE16 WINAPI GetModuleHandle16(LPCSTR);
HLOCAL16 WINAPI LocalAlloc16(UINT16,WORD);
LPVOID WINAPI LockResource16(HGLOBAL16);
#ifdef __WINE__
WORD WINAPI AllocCStoDSAlias(WORD);
WORD WINAPI AllocDStoCSAlias(WORD);
HGLOBAL16 WINAPI AllocResource(HINSTANCE16,HRSRC16,DWORD);
WORD WINAPI AllocSelector(WORD);
WORD WINAPI AllocSelectorArray(WORD);
VOID WINAPI DirectedYield(HTASK16);
HGLOBAL16 WINAPI DirectResAlloc(HINSTANCE16,WORD,UINT16);
HANDLE16 WINAPI FarGetOwner(HGLOBAL16);
VOID WINAPI FarSetOwner(HGLOBAL16,HANDLE16);
FARPROC16 WINAPI FileCDR(FARPROC16);
WORD WINAPI FreeSelector(WORD);
HANDLE16 WINAPI GetAtomHandle(ATOM);
HANDLE16 WINAPI GetCodeHandle(FARPROC16);
VOID WINAPI GetCodeInfo(FARPROC16,SEGINFO*);
DWORD WINAPI GetCurrentPDB(void);
SEGPTR WINAPI GetDOSEnvironment(void);
HMODULE16 WINAPI GetExePtr(HANDLE16);
WORD WINAPI GetExeVersion(void);
WORD WINAPI GetExpWinVer(HMODULE16);
DWORD WINAPI GetHeapSpaces(HMODULE16);
INT16 WINAPI GetInstanceData(HINSTANCE16,WORD,INT16);
BOOL16 WINAPI GetModuleName(HINSTANCE16,LPSTR,INT16);
INT16 WINAPI GetModuleUsage(HINSTANCE16);
UINT16 WINAPI GetNumTasks(void);
DWORD WINAPI GetSelectorLimit(WORD);
FARPROC16 WINAPI GetSetKernelDOSProc(FARPROC16 DosProc);
HINSTANCE16 WINAPI GetTaskDS(void);
HQUEUE16 WINAPI GetTaskQueue(HTASK16);
DWORD WINAPI GetWinFlags(void);
DWORD WINAPI GlobalDOSAlloc(DWORD);
WORD WINAPI GlobalDOSFree(WORD);
void WINAPI GlobalFreeAll(HGLOBAL16);
DWORD WINAPI GlobalHandleNoRIP(WORD);
HGLOBAL16 WINAPI GlobalLRUNewest(HGLOBAL16);
HGLOBAL16 WINAPI GlobalLRUOldest(HGLOBAL16);
VOID WINAPI GlobalNotify(FARPROC16);
WORD WINAPI GlobalPageLock(HGLOBAL16);
WORD WINAPI GlobalPageUnlock(HGLOBAL16);
BOOL16 WINAPI IsSharedSelector(HANDLE16);
BOOL16 WINAPI IsTask(HTASK16);
HTASK16 WINAPI IsTaskLocked(void);
VOID WINAPI LogError(UINT16, LPVOID);
VOID WINAPI LogParamError(UINT16,FARPROC16,LPVOID);
WORD WINAPI LocalCountFree(void);
WORD WINAPI LocalHandleDelta(WORD);
WORD WINAPI LocalHeapSize(void);
BOOL16 WINAPI LocalInit(HANDLE16,WORD,WORD);
HMODULE32 WINAPI LoadLibraryEx32W16(LPCSTR,HANDLE16,DWORD);
FARPROC16 WINAPI LocalNotify(FARPROC16);
HTASK16 WINAPI LockCurrentTask(BOOL16);
VOID WINAPI OldYield(void);
VOID WINAPI PostEvent(HTASK16);
WORD WINAPI PrestoChangoSelector(WORD,WORD);
WORD WINAPI SelectorAccessRights(WORD,WORD,WORD);
VOID WINAPI SetPriority(HTASK16,INT16);
FARPROC16 WINAPI SetResourceHandler(HINSTANCE16,SEGPTR,FARPROC16);
WORD WINAPI SetSelectorLimit(WORD,DWORD);
HQUEUE16 WINAPI SetTaskQueue(HTASK16,HQUEUE16);
VOID WINAPI SwitchStackTo(WORD,WORD,WORD);
BOOL16 WINAPI WaitEvent(HTASK16);
VOID WINAPI WriteOutProfiles(VOID);
VOID WINAPI hmemcpy(LPVOID,LPCVOID,LONG);
#endif /* __WINE__ */
INT16 WINAPI AccessResource16(HINSTANCE16,HRSRC16);
ATOM WINAPI AddAtom16(SEGPTR);
BOOL16 WINAPI CreateDirectory16(LPCSTR,LPVOID);
BOOL16 WINAPI DefineHandleTable16(WORD);
ATOM WINAPI DeleteAtom16(ATOM);
BOOL16 WINAPI DeleteFile16(LPCSTR);
void WINAPI FatalAppExit16(UINT16,LPCSTR);
ATOM WINAPI FindAtom16(SEGPTR);
BOOL16 WINAPI FindClose16(HANDLE16);
HRSRC16 WINAPI FindResource16(HINSTANCE16,SEGPTR,SEGPTR);
BOOL16 WINAPI FreeModule16(HMODULE16);
#define FreeModule WINELIB_NAME(FreeModule)
void WINAPI FreeProcInstance16(FARPROC16);
BOOL16 WINAPI FreeResource16(HGLOBAL16);
UINT16 WINAPI GetAtomName16(ATOM,LPSTR,INT16);
UINT16 WINAPI GetCurrentDirectory16(UINT16,LPSTR);
BOOL16 WINAPI GetDiskFreeSpace16(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
UINT16 WINAPI GetDriveType16(UINT16); /* yes, the arguments differ */
DWORD WINAPI GetFileAttributes16(LPCSTR);
DWORD WINAPI GetFreeSpace16(UINT16);
INT16 WINAPI GetModuleFileName16(HINSTANCE16,LPSTR,INT16);
UINT16 WINAPI GetPrivateProfileInt16(LPCSTR,LPCSTR,INT16,LPCSTR);
WORD WINAPI GetPrivateProfileSectionNames16(LPSTR,UINT16,LPCSTR);
INT16 WINAPI GetPrivateProfileString16(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16,LPCSTR);
FARPROC16 WINAPI GetProcAddress16(HMODULE16,SEGPTR);
UINT16 WINAPI GetProfileInt16(LPCSTR,LPCSTR,INT16);
INT16 WINAPI GetProfileString16(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16);
UINT16 WINAPI GetSystemDirectory16(LPSTR,UINT16);
UINT16 WINAPI GetTempFileName16(BYTE,LPCSTR,UINT16,LPSTR);
LONG WINAPI GetVersion16(void);
UINT16 WINAPI GetWindowsDirectory16(LPSTR,UINT16);
DWORD WINAPI GlobalCompact16(DWORD);
UINT16 WINAPI GlobalFlags16(HGLOBAL16);
DWORD WINAPI GlobalHandle16(WORD);
HGLOBAL16 WINAPI GlobalReAlloc16(HGLOBAL16,DWORD,UINT16);
WORD WINAPI InitAtomTable16(WORD);
BOOL16 WINAPI IsBadCodePtr16(SEGPTR);
BOOL16 WINAPI IsBadHugeReadPtr16(SEGPTR,DWORD);
BOOL16 WINAPI IsBadHugeWritePtr16(SEGPTR,DWORD);
BOOL16 WINAPI IsBadReadPtr16(SEGPTR,UINT16);
BOOL16 WINAPI IsBadStringPtr16(SEGPTR,UINT16);
BOOL16 WINAPI IsBadWritePtr16(SEGPTR,UINT16);
BOOL16 WINAPI IsDBCSLeadByte16(BYTE);
HGLOBAL16 WINAPI LoadResource16(HINSTANCE16,HRSRC16);
UINT16 WINAPI LocalCompact16(UINT16);
UINT16 WINAPI LocalFlags16(HLOCAL16);
HLOCAL16 WINAPI LocalFree16(HLOCAL16);
HLOCAL16 WINAPI LocalHandle16(WORD);
SEGPTR WINAPI LocalLock16(HLOCAL16);
HLOCAL16 WINAPI LocalReAlloc16(HLOCAL16,WORD,UINT16);
UINT16 WINAPI LocalShrink16(HGLOBAL16,UINT16);
UINT16 WINAPI LocalSize16(HLOCAL16);
BOOL16 WINAPI LocalUnlock16(HLOCAL16);
HGLOBAL16 WINAPI LockSegment16(HGLOBAL16);
FARPROC16 WINAPI MakeProcInstance16(FARPROC16,HANDLE16);
VOID WINAPI OutputDebugString16(LPCSTR);
DWORD WINAPI RegCreateKey16(HKEY,LPCSTR,LPHKEY);
DWORD WINAPI RegDeleteKey16(HKEY,LPCSTR);
DWORD WINAPI RegDeleteValue16(HKEY,LPSTR);
DWORD WINAPI RegEnumKey16(HKEY,DWORD,LPSTR,DWORD);
DWORD WINAPI RegEnumValue16(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
DWORD WINAPI RegOpenKey16(HKEY,LPCSTR,LPHKEY);
DWORD WINAPI RegQueryValue16(HKEY,LPSTR,LPSTR,LPDWORD);
DWORD WINAPI RegQueryValueEx16(HKEY,LPSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
DWORD WINAPI RegSetValue16(HKEY,LPCSTR,DWORD,LPCSTR,DWORD);
DWORD WINAPI RegSetValueEx16(HKEY,LPSTR,DWORD,DWORD,LPBYTE,DWORD);
BOOL16 WINAPI RemoveDirectory16(LPCSTR);
BOOL16 WINAPI SetCurrentDirectory16(LPCSTR);
UINT16 WINAPI SetErrorMode16(UINT16);
BOOL16 WINAPI SetFileAttributes16(LPCSTR,DWORD);
UINT16 WINAPI SetHandleCount16(UINT16);
LONG WINAPI SetSwapAreaSize16(WORD);
DWORD WINAPI SizeofResource16(HMODULE16,HRSRC16);
void WINAPI UnlockSegment16(HGLOBAL16);
BOOL16 WINAPI WritePrivateProfileString16(LPCSTR,LPCSTR,LPCSTR,LPCSTR);
BOOL16 WINAPI WriteProfileString16(LPCSTR,LPCSTR,LPCSTR);
VOID WINAPI Yield16(void);
SEGPTR WINAPI lstrcat16(SEGPTR,LPCSTR);
SEGPTR WINAPI lstrcatn16(SEGPTR,LPCSTR,INT16);
SEGPTR WINAPI lstrcpy16(SEGPTR,LPCSTR);
SEGPTR WINAPI lstrcpyn16(SEGPTR,LPCSTR,INT16);
INT16 WINAPI lstrlen16(LPCSTR);
HINSTANCE16 WINAPI WinExec16(LPCSTR,UINT16);
LONG WINAPI _hread16(HFILE16,LPVOID,LONG);
LONG WINAPI _hwrite16(HFILE16,LPCSTR,LONG);
HFILE16 WINAPI _lcreat16(LPCSTR,INT16);
HFILE16 WINAPI _lclose16(HFILE16);
LONG WINAPI _llseek16(HFILE16,LONG,INT16);
HFILE16 WINAPI _lopen16(LPCSTR,INT16);
UINT16 WINAPI _lread16(HFILE16,LPVOID,UINT16);
UINT16 WINAPI _lwrite16(HFILE16,LPCSTR,UINT16);
BOOL16 WINAPI WritePrivateProfileSection16(LPCSTR,LPCSTR,LPCSTR);
BOOL16 WINAPI WritePrivateProfileStruct16(LPCSTR,LPCSTR,LPVOID,UINT16,LPCSTR);
DWORD WINAPI GetSelectorBase(WORD);
WORD WINAPI SetSelectorBase(WORD,DWORD);
/* Extra functions that don't exist in the Windows API */
HPEN16 WINAPI GetSysColorPen16(INT16);
UINT32 WINAPI WIN16_GetTempDrive(BYTE);
SEGPTR WINAPI WIN16_LockResource16(HGLOBAL16);
LONG WINAPI WIN16_hread(HFILE16,SEGPTR,LONG);
UINT16 WINAPI WIN16_lread(HFILE16,SEGPTR,UINT16);
#endif /* _INCLUDE_WINE_WINBASE16_H */

53
include/wine/winesound.h Normal file
View File

@ -0,0 +1,53 @@
#ifndef _WINE_SOUND_H
#define _WINE_SOUND_H
#include "wintypes.h"
VOID WINAPI CloseSound(VOID);
INT16 WINAPI CountVoiceNotes16(INT16);
DWORD WINAPI CountVoiceNotes32(DWORD);
#define CountVoiceNotes WINELIB_NAME(CountVoiceNotes)
LPINT16 WINAPI GetThresholdEvent16(void);
LPDWORD WINAPI GetThresholdEvent32(void);
#define GetThresholdEvent WINELIB_NAME(GetThresholdEvent)
INT16 WINAPI GetThresholdStatus16(void);
DWORD WINAPI GetThresholdStatus32(void);
#define GetThresholdStatus WINELIB_NAME(GetThresholdStatus)
INT16 WINAPI OpenSound16(void);
VOID WINAPI OpenSound32(void);
#define OpenSound WINELIB_NAME(OpenSound)
INT16 WINAPI SetSoundNoise16(INT16,INT16);
DWORD WINAPI SetSoundNoise32(DWORD,DWORD);
#define SetSoundNoise WINELIB_NAME(SetSoundNoise)
INT16 WINAPI SetVoiceAccent16(INT16,INT16,INT16,INT16,INT16);
DWORD WINAPI SetVoiceAccent32(DWORD,DWORD,DWORD,DWORD,DWORD);
#define SetVoiceAccent WINELIB_NAME(SetVoiceAccent)
INT16 WINAPI SetVoiceEnvelope16(INT16,INT16,INT16);
DWORD WINAPI SetVoiceEnvelope32(DWORD,DWORD,DWORD);
#define SetVoiceEnvelope WINELIB_NAME(SetVoiceEnvelope)
INT16 WINAPI SetVoiceNote16(INT16,INT16,INT16,INT16);
DWORD WINAPI SetVoiceNote32(DWORD,DWORD,DWORD,DWORD);
#define SetVoiceNote WINELIB_NAME(SetVoiceNote)
INT16 WINAPI SetVoiceQueueSize16(INT16,INT16);
DWORD WINAPI SetVoiceQueueSize32(DWORD,DWORD);
#define SetVoiceQueueSize WINELIB_NAME(SetVoiceQueueSize)
INT16 WINAPI SetVoiceSound16(INT16,DWORD,INT16);
DWORD WINAPI SetVoiceSound32(DWORD,DWORD,DWORD);
#define SetVoiceSound WINELIB_NAME(SetVoiceSound)
INT16 WINAPI SetVoiceThreshold16(INT16,INT16);
DWORD WINAPI SetVoiceThreshold32(DWORD,DWORD);
#define SetVoiceThreshold WINELIB_NAME(SetVoiceThreshold)
INT16 WINAPI StartSound16(void);
VOID WINAPI StartSound32(void);
#define StartSound WINELIB_NAME(StartSound)
INT16 WINAPI StopSound16(void);
VOID WINAPI StopSound32(void);
#define StopSound WINELIB_NAME(StopSound)
INT16 WINAPI SyncAllVoices16(void);
DWORD WINAPI SyncAllVoices32(void);
#define SyncAllVoices WINELIB_NAME(SyncAllVoices)
INT16 WINAPI WaitSoundState16(INT16);
DWORD WINAPI WaitSoundState32(DWORD);
#define WaitSoundState WINELIB_NAME(WaitSoundState)
#endif /* _WINE_SOUND_H */

17
include/wine/winestring.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef _INCLUDE_WINE_STRINGS_H
#define _INCLUDE_WINE_STRINGS_H
INT16 WINAPI WideCharToLocal16(LPSTR,LPWSTR,INT16);
INT32 WINAPI WideCharToLocal32(LPSTR,LPWSTR,INT32);
#define WideCharToLocal WINELIB_NAME(WideCharToLocal)
INT16 WINAPI LocalToWideChar16(LPWSTR,LPSTR,INT16);
INT32 WINAPI LocalToWideChar32(LPWSTR,LPSTR,INT32);
#define LocalToWideChar WINELIB_NAME(LocalToWideChar)
INT32 WINAPI lstrncmp32A(LPCSTR,LPCSTR,INT32);
INT32 WINAPI lstrncmp32W(LPCWSTR,LPCWSTR,INT32);
INT32 WINAPI lstrncmpi32A(LPCSTR,LPCSTR,INT32);
INT32 WINAPI lstrncmpi32W(LPCWSTR,LPCWSTR,INT32);
LPWSTR WINAPI lstrcpyAtoW(LPWSTR,LPCSTR);
LPSTR WINAPI lstrcpyWtoA(LPSTR,LPCWSTR);
LPWSTR WINAPI lstrcpynAtoW(LPWSTR,LPCSTR,INT32);
LPSTR WINAPI lstrcpynWtoA(LPSTR,LPCWSTR,INT32);
#endif /* _INCLUDE_WINE_STRINGS_H */

View File

@ -190,9 +190,313 @@ typedef struct /* not sure if the 16bit version is correct */
DWORD dwLanguageId;
} MSGBOXPARAMS16,*LPMSGBOXPARAMS16;
/* Windows */
typedef struct
{
LPVOID lpCreateParams;
HINSTANCE16 hInstance;
HMENU16 hMenu;
HWND16 hwndParent;
INT16 cy;
INT16 cx;
INT16 y;
INT16 x;
LONG style WINE_PACKED;
SEGPTR lpszName WINE_PACKED;
SEGPTR lpszClass WINE_PACKED;
DWORD dwExStyle WINE_PACKED;
} CREATESTRUCT16, *LPCREATESTRUCT16;
typedef struct
{
HMENU16 hWindowMenu;
UINT16 idFirstChild;
} CLIENTCREATESTRUCT16, *LPCLIENTCREATESTRUCT16;
typedef struct
{
SEGPTR szClass;
SEGPTR szTitle;
HINSTANCE16 hOwner;
INT16 x;
INT16 y;
INT16 cx;
INT16 cy;
DWORD style WINE_PACKED;
LPARAM lParam WINE_PACKED;
} MDICREATESTRUCT16, *LPMDICREATESTRUCT16;
/* WM_GETMINMAXINFO struct */
typedef struct
{
POINT16 ptReserved;
POINT16 ptMaxSize;
POINT16 ptMaxPosition;
POINT16 ptMinTrackSize;
POINT16 ptMaxTrackSize;
} MINMAXINFO16;
/* WM_WINDOWPOSCHANGING/CHANGED struct */
typedef struct
{
HWND16 hwnd;
HWND16 hwndInsertAfter;
INT16 x;
INT16 y;
INT16 cx;
INT16 cy;
UINT16 flags;
} WINDOWPOS16, *LPWINDOWPOS16;
/* WM_NCCALCSIZE parameter structure */
typedef struct
{
RECT16 rgrc[3];
SEGPTR lppos;
} NCCALCSIZE_PARAMS16, *LPNCCALCSIZE_PARAMS16;
/* Journalling hook structure */
typedef struct
{
UINT16 message;
UINT16 paramL;
UINT16 paramH;
DWORD time WINE_PACKED;
} EVENTMSG16, *LPEVENTMSG16;
/* Mouse hook structure */
typedef struct
{
POINT16 pt;
HWND16 hwnd;
UINT16 wHitTestCode;
DWORD dwExtraInfo;
} MOUSEHOOKSTRUCT16, *LPMOUSEHOOKSTRUCT16;
/* Hardware hook structure */
typedef struct
{
HWND16 hWnd;
UINT16 wMessage;
WPARAM16 wParam;
LPARAM lParam WINE_PACKED;
} HARDWAREHOOKSTRUCT16, *LPHARDWAREHOOKSTRUCT16;
/* Scrollbar messages */
#define SBM_SETPOS16 (WM_USER+0)
#define SBM_GETPOS16 (WM_USER+1)
#define SBM_SETRANGE16 (WM_USER+2)
#define SBM_GETRANGE16 (WM_USER+3)
#define SBM_ENABLE_ARROWS16 (WM_USER+4)
#define SBM_SETRANGEREDRAW16 WM_NULL /* Not in Win16 */
#define SBM_SETSCROLLINFO16 WM_NULL /* Not in Win16 */
#define SBM_GETSCROLLINFO16 WM_NULL /* Not in Win16 */
/* CBT hook structures */
typedef struct
{
CREATESTRUCT16 *lpcs;
HWND16 hwndInsertAfter;
} CBT_CREATEWND16, *LPCBT_CREATEWND16;
typedef struct
{
BOOL16 fMouse;
HWND16 hWndActive;
} CBTACTIVATESTRUCT16, *LPCBTACTIVATESTRUCT16;
/* Debug hook structure */
typedef struct
{
HMODULE16 hModuleHook;
LPARAM reserved WINE_PACKED;
LPARAM lParam WINE_PACKED;
WPARAM16 wParam;
INT16 code;
} DEBUGHOOKINFO16, *LPDEBUGHOOKINFO16;
#define GETMAXLPT 8
#define GETMAXCOM 9
/* GetFreeSystemResources() parameters */
#define GFSR_SYSTEMRESOURCES 0x0000
#define GFSR_GDIRESOURCES 0x0001
#define GFSR_USERRESOURCES 0x0002
#define MAKEINTRESOURCE16(i) (SEGPTR)((DWORD)((WORD)(i)))
/* Predefined resource types */
#define RT_CURSOR16 MAKEINTRESOURCE16(1)
#define RT_BITMAP16 MAKEINTRESOURCE16(2)
#define RT_ICON16 MAKEINTRESOURCE16(3)
#define RT_MENU16 MAKEINTRESOURCE16(4)
#define RT_DIALOG16 MAKEINTRESOURCE16(5)
#define RT_STRING16 MAKEINTRESOURCE16(6)
#define RT_FONTDIR16 MAKEINTRESOURCE16(7)
#define RT_FONT16 MAKEINTRESOURCE16(8)
#define RT_ACCELERATOR16 MAKEINTRESOURCE16(9)
#define RT_RCDATA16 MAKEINTRESOURCE16(10)
#define RT_MESSAGELIST16 MAKEINTRESOURCE16(11)
#define RT_GROUP_CURSOR16 MAKEINTRESOURCE16(12)
#define RT_GROUP_ICON16 MAKEINTRESOURCE16(14)
/* Predefined resources */
#define IDI_APPLICATION16 MAKEINTRESOURCE16(32512)
#define IDI_HAND16 MAKEINTRESOURCE16(32513)
#define IDI_QUESTION16 MAKEINTRESOURCE16(32514)
#define IDI_EXCLAMATION16 MAKEINTRESOURCE16(32515)
#define IDI_ASTERISK16 MAKEINTRESOURCE16(32516)
#define IDC_BUMMER16 MAKEINTRESOURCE16(100)
#define IDC_ARROW16 MAKEINTRESOURCE16(32512)
#define IDC_IBEAM16 MAKEINTRESOURCE16(32513)
#define IDC_WAIT16 MAKEINTRESOURCE16(32514)
#define IDC_CROSS16 MAKEINTRESOURCE16(32515)
#define IDC_UPARROW16 MAKEINTRESOURCE16(32516)
#define IDC_SIZE16 MAKEINTRESOURCE16(32640)
#define IDC_ICON16 MAKEINTRESOURCE16(32641)
#define IDC_SIZENWSE16 MAKEINTRESOURCE16(32642)
#define IDC_SIZENESW16 MAKEINTRESOURCE16(32643)
#define IDC_SIZEWE16 MAKEINTRESOURCE16(32644)
#define IDC_SIZENS16 MAKEINTRESOURCE16(32645)
#define IDC_SIZEALL16 MAKEINTRESOURCE16(32646)
#define IDC_NO16 MAKEINTRESOURCE16(32648)
#define IDC_APPSTARTING16 MAKEINTRESOURCE16(32650)
#define IDC_HELP16 MAKEINTRESOURCE16(32651)
/* CreateWindow() coordinates */
#define CW_USEDEFAULT16 ((INT16)0x8000)
/* Win16 button control messages */
#define BM_GETCHECK16 (WM_USER+0)
#define BM_SETCHECK16 (WM_USER+1)
#define BM_GETSTATE16 (WM_USER+2)
#define BM_SETSTATE16 (WM_USER+3)
#define BM_SETSTYLE16 (WM_USER+4)
#define BM_CLICK16 WM_NULL /* Does not exist in Win16 */
#define BM_GETIMAGE16 WM_NULL /* Does not exist in Win16 */
#define BM_SETIMAGE16 WM_NULL /* Does not exist in Win16 */
/* Static Control Messages */
#define STM_SETICON16 (WM_USER+0)
#define STM_GETICON16 (WM_USER+1)
/* Edit control messages */
#define EM_GETSEL16 (WM_USER+0)
#define EM_SETSEL16 (WM_USER+1)
#define EM_GETRECT16 (WM_USER+2)
#define EM_SETRECT16 (WM_USER+3)
#define EM_SETRECTNP16 (WM_USER+4)
#define EM_SCROLL16 (WM_USER+5)
#define EM_LINESCROLL16 (WM_USER+6)
#define EM_SCROLLCARET16 (WM_USER+7)
#define EM_GETMODIFY16 (WM_USER+8)
#define EM_SETMODIFY16 (WM_USER+9)
#define EM_GETLINECOUNT16 (WM_USER+10)
#define EM_LINEINDEX16 (WM_USER+11)
#define EM_SETHANDLE16 (WM_USER+12)
#define EM_GETHANDLE16 (WM_USER+13)
#define EM_GETTHUMB16 (WM_USER+14)
#define EM_LINELENGTH16 (WM_USER+17)
#define EM_REPLACESEL16 (WM_USER+18)
#define EM_GETLINE16 (WM_USER+20)
#define EM_LIMITTEXT16 (WM_USER+21)
#define EM_CANUNDO16 (WM_USER+22)
#define EM_UNDO16 (WM_USER+23)
#define EM_FMTLINES16 (WM_USER+24)
#define EM_LINEFROMCHAR16 (WM_USER+25)
#define EM_SETTABSTOPS16 (WM_USER+27)
#define EM_SETPASSWORDCHAR16 (WM_USER+28)
#define EM_EMPTYUNDOBUFFER16 (WM_USER+29)
#define EM_GETFIRSTVISIBLELINE16 (WM_USER+30)
#define EM_SETREADONLY16 (WM_USER+31)
#define EM_SETWORDBREAKPROC16 (WM_USER+32)
#define EM_GETWORDBREAKPROC16 (WM_USER+33)
#define EM_GETPASSWORDCHAR16 (WM_USER+34)
/*
not in win16:
EM_SETMARGINS16 WM_NULL
EM_GETMARGINS16 WM_NULL
EM_GETLIMITTEXT16 WM_NULL
EM_POSFROMCHAR16 WM_NULL
EM_CHARFROMPOS16 WM_NULL
EM_SETLIMITTEXT16 WM_NULL - no name change in win16
*/
typedef struct
{
UINT16 CtlType;
UINT16 CtlID;
UINT16 itemID;
UINT16 itemAction;
UINT16 itemState;
HWND16 hwndItem;
HDC16 hDC;
RECT16 rcItem WINE_PACKED;
DWORD itemData WINE_PACKED;
} DRAWITEMSTRUCT16, *PDRAWITEMSTRUCT16, *LPDRAWITEMSTRUCT16;
typedef struct
{
UINT16 CtlType;
UINT16 CtlID;
UINT16 itemID;
UINT16 itemWidth;
UINT16 itemHeight;
DWORD itemData WINE_PACKED;
} MEASUREITEMSTRUCT16, *PMEASUREITEMSTRUCT16, *LPMEASUREITEMSTRUCT16;
typedef struct
{
UINT16 CtlType;
UINT16 CtlID;
UINT16 itemID;
HWND16 hwndItem;
DWORD itemData;
} DELETEITEMSTRUCT16, *LPDELETEITEMSTRUCT16;
typedef struct
{
UINT16 CtlType;
UINT16 CtlID;
HWND16 hwndItem;
UINT16 itemID1;
DWORD itemData1;
UINT16 itemID2;
DWORD itemData2 WINE_PACKED;
} COMPAREITEMSTRUCT16, *LPCOMPAREITEMSTRUCT16;
#pragma pack(4)
BOOL16 WINAPI CheckMenuRadioItem16(HMENU16,UINT16,UINT16,UINT16,UINT16);
HICON16 WINAPI CopyImage16(HANDLE16,UINT16,INT16,INT16,UINT16);
HICON16 WINAPI CreateIconFromResource16(LPBYTE,UINT16,BOOL16,DWORD);
BOOL16 WINAPI EnumChildWindows16(HWND16,WNDENUMPROC16,LPARAM);
INT16 WINAPI EnumProps16(HWND16,PROPENUMPROC16);
BOOL16 WINAPI EnumWindows16(WNDENUMPROC16,LPARAM);
DWORD WINAPI GetAppCompatFlags16(HTASK16);
INT16 WINAPI GetKBCodePage16(void);
INT16 WINAPI GetKeyboardType16(INT16);
INT16 WINAPI GetKeyNameText16(LONG,LPSTR,INT16);
INT16 WINAPI GetWindowRgn16(HWND16,HRGN16);
BOOL16 WINAPI IsWindow16(HWND16);
INT16 WINAPI LookupIconIdFromDirectory16(LPBYTE,BOOL16);
UINT16 WINAPI MapVirtualKey16(UINT16,UINT16);
LRESULT WINAPI SendMessageTimeout16(HWND16,UINT16,WPARAM16,LPARAM,UINT16,
UINT16,LPWORD);
FARPROC16 WINAPI SetWindowsHook16(INT16,HOOKPROC16);
HHOOK WINAPI SetWindowsHookEx16(INT16,HOOKPROC16,HINSTANCE16,HTASK16);
BOOL16 WINAPI UnhookWindowsHook16(INT16,HOOKPROC16);
BOOL16 WINAPI UnhookWindowsHookEx16(HHOOK);
INT16 WINAPIV wsnprintf16(LPSTR,UINT16,LPCSTR,...);
INT16 WINAPIV wsprintf16(LPSTR,LPCSTR,...);
INT16 WINAPI wvsnprintf16(LPSTR,UINT16,LPCSTR,LPCVOID);
VOID WINAPI CalcChildScroll(HWND16,WORD);
VOID WINAPI CascadeChildWindows(HWND16,WORD);
INT16 WINAPI CloseComm(INT16);
@ -297,8 +601,6 @@ LONG WINAPI WIN16_DispatchMessage32(const MSG16_32*,BOOL16);
INT16 WINAPI DlgDirList16(HWND16,LPSTR,INT16,INT16,UINT16);
INT16 WINAPI DlgDirListComboBox16(HWND16,LPSTR,INT16,INT16,UINT16);
BOOL16 WINAPI DlgDirSelectComboBoxEx16(HWND16,LPSTR,INT16,INT16);
BOOL32 WINAPI DlgDirSelectComboBoxEx32A(HWND32,LPSTR,INT32,INT32);
BOOL32 WINAPI DlgDirSelectComboBoxEx32W(HWND32,LPWSTR,INT32,INT32);
BOOL16 WINAPI DlgDirSelectEx16(HWND16,LPSTR,INT16,INT16);
BOOL16 WINAPI DragDetect16(HWND16,POINT16);
DWORD WINAPI DragObject16(HWND16,HWND16,UINT16,HANDLE16,WORD,HCURSOR16);
@ -548,6 +850,23 @@ INT16 WINAPI GetCommError(INT16,LPCOMSTAT);
BOOL16 WINAPI BuildCommDCB16(LPCSTR,LPDCB16);
INT16 WINAPI GetCommState16(INT16,LPDCB16);
INT16 WINAPI SetCommState16(LPDCB16);
INT16 WINAPI lstrcmp16(LPCSTR,LPCSTR);
INT16 WINAPI lstrcmpi16(LPCSTR,LPCSTR);
#ifdef __WINE__
typedef VOID (*SYSTEMTIMERPROC)(WORD);
WORD WINAPI CreateSystemTimer(WORD,SYSTEMTIMERPROC);
VOID WINAPI DisableSystemTimers(void);
VOID WINAPI EnableSystemTimers(void);
DWORD WINAPI GetFileResourceSize(LPCSTR,SEGPTR,SEGPTR,LPDWORD);
DWORD WINAPI GetFileResource(LPCSTR,SEGPTR,SEGPTR,DWORD,DWORD,LPVOID);
BYTE WINAPI GetTempDrive(BYTE);
FARPROC16 WINAPI SetTaskSignalProc(HTASK16,FARPROC16);
#endif /* __WINE__ */
BOOL16 WINAPI GrayString16(HDC16,HBRUSH16,GRAYSTRINGPROC16,LPARAM,
INT16,INT16,INT16,INT16,INT16);
BOOL16 WINAPI EnumTaskWindows16(HTASK16,WNDENUMPROC16,LPARAM);
#endif /* __WINE_WINUSER16_H */

84
include/winnetwk.h Normal file
View File

@ -0,0 +1,84 @@
#ifndef _WINNETWK_H_
#define _WINNETWK_H_
#include "wintypes.h"
typedef struct {
DWORD dwScope;
DWORD dwType;
DWORD dwDisplayType;
DWORD dwUsage;
LPSTR lpLocalName;
LPSTR lpRemoteName;
LPSTR lpComment ;
LPSTR lpProvider;
} NETRESOURCE32A,*LPNETRESOURCE32A;
typedef struct {
DWORD dwScope;
DWORD dwType;
DWORD dwDisplayType;
DWORD dwUsage;
LPWSTR lpLocalName;
LPWSTR lpRemoteName;
LPWSTR lpComment ;
LPWSTR lpProvider;
} NETRESOURCE32W,*LPNETRESOURCE32W;
DECL_WINELIB_TYPE_AW(NETRESOURCE)
DECL_WINELIB_TYPE_AW(LPNETRESOURCE)
typedef struct {
DWORD cbStructure; /* size of this structure in bytes */
HWND32 hwndOwner; /* owner window for the dialog */
LPNETRESOURCE32A lpConnRes;/* Requested Resource info */
DWORD dwFlags; /* flags (see below) */
DWORD dwDevNum; /* number of devices connected to */
} CONNECTDLGSTRUCT32A, *LPCONNECTDLGSTRUCT32A;
typedef struct {
DWORD cbStructure; /* size of this structure in bytes */
HWND32 hwndOwner; /* owner window for the dialog */
LPNETRESOURCE32W lpConnRes;/* Requested Resource info */
DWORD dwFlags; /* flags (see below) */
DWORD dwDevNum; /* number of devices connected to */
} CONNECTDLGSTRUCT32W, *LPCONNECTDLGSTRUCT32W;
DECL_WINELIB_TYPE_AW(CONNECTDLGSTRUCT)
DECL_WINELIB_TYPE_AW(LPCONNECTDLGSTRUCT)
/**/
#define CONNDLG_RO_PATH 0x00000001 /* Resource path should be read-only */
#define CONNDLG_CONN_POINT 0x00000002 /* Netware -style movable connection point enabled */
#define CONNDLG_USE_MRU 0x00000004 /* Use MRU combobox */
#define CONNDLG_HIDE_BOX 0x00000008 /* Hide persistent connect checkbox */
#define CONNDLG_PERSIST 0x00000010 /* Force persistent connection */
#define CONNDLG_NOT_PERSIST 0x00000020 /* Force connection NOT persistent */
typedef struct {
DWORD cbStructure;
DWORD dwFlags;
DWORD dwSpeed;
DWORD dwDelay;
DWORD dwOptDataSize;
} NETCONNECTINFOSTRUCT,*LPNETCONNECTINFOSTRUCT;
UINT32 WINAPI WNetAddConnection2_32A(LPNETRESOURCE32A,LPCSTR,LPCSTR,DWORD);
UINT32 WINAPI WNetAddConnection2_32W(LPNETRESOURCE32W,LPCWSTR,LPCWSTR,DWORD);
#define WNetAddConnection2 WINELIB_NAME_AW(WNetAddConnection2_)
UINT32 WINAPI WNetAddConnection3_32A(HWND32,LPNETRESOURCE32A,LPCSTR,LPCSTR,DWORD);
UINT32 WINAPI WNetAddConnection3_32W(HWND32,LPNETRESOURCE32W,LPCWSTR,LPCWSTR,DWORD);
#define WNetAddConnection3 WINELIB_NAME_AW(WNetAddConnection3_)
UINT32 WINAPI WNetConnectionDialog1_32(HWND32,DWORD);
UINT32 WINAPI WNetConnectionDialog1_32A(LPCONNECTDLGSTRUCT32A);
UINT32 WINAPI WNetConnectionDialog1_32W(LPCONNECTDLGSTRUCT32W);
#define WNetConnectionDialog1 WINELIB_NAME_AW(WNetConnectionDialog1_)
UINT32 WINAPI MultinetGetErrorText32A(DWORD,DWORD,DWORD);
UINT32 WINAPI MultinetGetErrorText32W(DWORD,DWORD,DWORD);
#define MultinetGetErrorText WINELIB_NAME_AW(MultinetGetErrorText_)
#endif /* _WINNETWK_H_ */

View File

@ -1,6 +1,11 @@
#ifndef __WINE_WINNLS_H
#define __WINE_WINNLS_H
#ifdef HAVE_WCTYPE_H
#include <wctype.h> /* needed for towupper */
#endif
#include "wintypes.h"
/* flags to GetLocaleInfo */
#define LOCALE_NOUSEROVERRIDE 0x80000000
#define LOCALE_USE_CP_ACP 0x40000000
@ -381,9 +386,11 @@
/* use this in a WineLib program if you really want all types */
#define LOCALE_TIMEDATEBOTH 0x00000300 /* full set */
#ifndef HAVE_WCTYPE_H /* fight native wctype.h */
/* Prototypes for Unicode case conversion routines */
WCHAR towupper(WCHAR);
WCHAR towlower(WCHAR);
#endif
/* Definitions for IsTextUnicode() function */
#define IS_TEXT_UNICODE_ASCII16 0x0001
@ -398,4 +405,56 @@ WCHAR towlower(WCHAR);
IS_TEXT_UNICODE_SIGNATURE| \
IS_TEXT_UNICODE_ODD_LENGTH
/* Character Type Flags */
#define CT_CTYPE1 0x00000001 /* usual ctype */
#define CT_CTYPE2 0x00000002 /* bidirectional layout info */
#define CT_CTYPE3 0x00000004 /* textprocessing info */
/* CType 1 Flag Bits */
#define C1_UPPER 0x0001
#define C1_LOWER 0x0002
#define C1_DIGIT 0x0004
#define C1_SPACE 0x0008
#define C1_PUNCT 0x0010
#define C1_CNTRL 0x0020
#define C1_BLANK 0x0040
#define C1_XDIGIT 0x0080
#define C1_ALPHA 0x0100
/* CType 2 Flag Bits */
#define C2_LEFTTORIGHT 0x0001
#define C2_RIGHTTOLEFT 0x0002
#define C2_EUROPENUMBER 0x0003
#define C2_EUROPESEPARATOR 0x0004
#define C2_EUROPETERMINATOR 0x0005
#define C2_ARABICNUMBER 0x0006
#define C2_COMMONSEPARATOR 0x0007
#define C2_BLOCKSEPARATOR 0x0008
#define C2_SEGMENTSEPARATOR 0x0009
#define C2_WHITESPACE 0x000A
#define C2_OTHERNEUTRAL 0x000B
#define C2_NOTAPPLICABLE 0x0000
/* CType 3 Flag Bits */
#define C3_NONSPACING 0x0001
#define C3_DIACRITIC 0x0002
#define C3_VOWELMARK 0x0004
#define C3_SYMBOL 0x0008
#define C3_KATAKANA 0x0010
#define C3_HIRAGANA 0x0020
#define C3_HALFWIDTH 0x0040
#define C3_FULLWIDTH 0x0080
#define C3_IDEOGRAPH 0x0100
#define C3_KASHIDA 0x0200
#define C3_LEXICAL 0x0400
#define C3_ALPHA 0x8000
#define C3_NOTAPPLICABLE 0x0000
/* FIXME: This does not belong to an interface file */
UINT16 WINAPI CompareString16(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD);
INT16 WINAPI GetLocaleInfo16(LCID,LCTYPE,LPSTR,INT16);
BOOL16 WINAPI GetStringType16(LCID,DWORD,LPCSTR,INT16,LPWORD);
#endif /* __WINE_WINNLS_H */

View File

@ -7,10 +7,33 @@
#ifndef __WINE_WINNT_H
#define __WINE_WINNT_H
#include "windows.h"
#include "wintypes.h"
#pragma pack(1)
/* Defines */
/* Argument 1 passed to the DllEntryProc. */
#define DLL_PROCESS_DETACH 0 /* detach process (unload library) */
#define DLL_PROCESS_ATTACH 1 /* attach process (load library) */
#define DLL_THREAD_ATTACH 2 /* attach new thread */
#define DLL_THREAD_DETACH 3 /* detach thread */
/* u.x.wProcessorArchitecture (NT) */
#define PROCESSOR_ARCHITECTURE_INTEL 0
#define PROCESSOR_ARCHITECTURE_MIPS 1
#define PROCESSOR_ARCHITECTURE_ALPHA 2
#define PROCESSOR_ARCHITECTURE_PPC 3
#define PROCESSOR_ARCHITECTURE_UNKNOWN 0xFFFF
/* dwProcessorType */
#define PROCESSOR_INTEL_386 386
#define PROCESSOR_INTEL_486 486
#define PROCESSOR_INTEL_PENTIUM 586
#define PROCESSOR_MIPS_R4000 4000
#define PROCESSOR_ALPHA_21064 21064
#define ANYSIZE_ARRAY 1
#define FIELD_OFFSET(type, field) \
@ -292,6 +315,19 @@ typedef struct _EXCEPTION_POINTERS
PCONTEXT ContextRecord;
} EXCEPTION_POINTERS, *PEXCEPTION_POINTERS;
typedef struct {
BYTE Value[6];
} SID_IDENTIFIER_AUTHORITY,*PSID_IDENTIFIER_AUTHORITY,*LPSID_IDENTIFIER_AUTHORITY;
typedef struct _SID {
BYTE Revision;
BYTE SubAuthorityCount;
SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
DWORD SubAuthority[1];
} SID,*PSID,*LPSID;
#pragma pack(4)
/*
* function pointer to a exception filter
*/
@ -360,6 +396,20 @@ typedef struct _TOKEN_GROUPS {
* LUID_AND_ATTRIBUTES
*/
typedef struct _LARGE_INTEGER
{
DWORD LowPart;
LONG HighPart;
} LARGE_INTEGER,*LPLARGE_INTEGER;
typedef struct _ULARGE_INTEGER
{
DWORD LowPart;
DWORD HighPart;
} ULARGE_INTEGER,*LPULARGE_INTEGER;
typedef LARGE_INTEGER LUID,*LPLUID; /* locally unique ids */
typedef struct _LUID_AND_ATTRIBUTES {
LUID Luid;
DWORD Attributes;
@ -394,16 +444,14 @@ typedef struct _TOKEN_PRIMARY_GROUP {
/*
* ACL (and PACL LPACL?).
*/
/*
are defined in ntddl.h.
typedef struct _ACL {
BYTE AclRevision;
BYTE Sbz1;
WORD AclSize;
WORD AceCount;
WORD Sbz2;
} ACL, *PACL; PACL <=> LPACL? */
BYTE AclRevision;
BYTE Sbz1;
WORD AclSize;
WORD AceCount;
WORD Sbz2;
} ACL, *LPACL;
/*
* TOKEN_DEFAULT_DACL
@ -546,6 +594,36 @@ typedef struct _TOKEN_STATISTICS {
FILE_READ_ATTRIBUTES | SYNCHRONIZE)
/* File attribute flags
*/
#define FILE_SHARE_READ 0x00000001L
#define FILE_SHARE_WRITE 0x00000002L
#define FILE_SHARE_DELETE 0x00000004L
#define FILE_ATTRIBUTE_READONLY 0x00000001L
#define FILE_ATTRIBUTE_HIDDEN 0x00000002L
#define FILE_ATTRIBUTE_SYSTEM 0x00000004L
#define FILE_ATTRIBUTE_LABEL 0x00000008L /* Not in Windows API */
#define FILE_ATTRIBUTE_DIRECTORY 0x00000010L
#define FILE_ATTRIBUTE_ARCHIVE 0x00000020L
#define FILE_ATTRIBUTE_NORMAL 0x00000080L
#define FILE_ATTRIBUTE_TEMPORARY 0x00000100L
#define FILE_ATTRIBUTE_ATOMIC_WRITE 0x00000200L
#define FILE_ATTRIBUTE_XACTION_WRITE 0x00000400L
#define FILE_ATTRIBUTE_COMPRESSED 0x00000800L
#define FILE_ATTRIBUTE_OFFLINE 0x00001000L
/* File alignments (NT) */
#define FILE_BYTE_ALIGNMENT 0x00000000
#define FILE_WORD_ALIGNMENT 0x00000001
#define FILE_LONG_ALIGNMENT 0x00000003
#define FILE_QUAD_ALIGNMENT 0x00000007
#define FILE_OCTA_ALIGNMENT 0x0000000f
#define FILE_32_BYTE_ALIGNMENT 0x0000001f
#define FILE_64_BYTE_ALIGNMENT 0x0000003f
#define FILE_128_BYTE_ALIGNMENT 0x0000007f
#define FILE_256_BYTE_ALIGNMENT 0x000000ff
#define FILE_512_BYTE_ALIGNMENT 0x000001ff
/* Registry security values */
#define OWNER_SECURITY_INFORMATION 0x00000001
#define GROUP_SECURITY_INFORMATION 0x00000002

View File

@ -4,7 +4,7 @@
#ifndef __WINE_WINREG_H
#define __WINE_WINREG_H
#include "wintypes.h"
#include "winbase.h"
/* FIXME: should be in security.h or whereever */
#ifndef READ_CONTROL
@ -88,7 +88,128 @@
KEY_CREATE_LINK \
)
/* Used by: ControlService */
typedef struct _SERVICE_STATUS {
DWORD dwServiceType;
DWORD dwCurrentState;
DWORD dwControlsAccepted;
DWORD dwWin32ExitCode;
DWORD dwServiceSpecificExitCode;
DWORD dwCheckPoint;
DWORD dwWaitHint;
} SERVICE_STATUS, *LPSERVICE_STATUS;
HANDLE32 WINAPI OpenSCManager32A(LPCSTR,LPCSTR,DWORD);
HANDLE32 WINAPI OpenSCManager32W(LPCWSTR,LPCWSTR,DWORD);
#define OpenSCManager WINELIB_NAME_AW(OpenSCManager)
HANDLE32 WINAPI OpenService32A(HANDLE32,LPCSTR,DWORD);
HANDLE32 WINAPI OpenService32W(HANDLE32,LPCWSTR,DWORD);
#define OpenService WINELIB_NAME_AW(OpenService)
BOOL32 WINAPI LookupPrivilegeValue32A(LPCSTR,LPCSTR,LPVOID);
BOOL32 WINAPI LookupPrivilegeValue32W(LPCWSTR,LPCWSTR,LPVOID);
#define LookupPrivilegeValue WINELIB_NAME_AW(LookupPrivilegeValue)
HANDLE32 WINAPI RegisterEventSource32A(LPCSTR,LPCSTR);
HANDLE32 WINAPI RegisterEventSource32W(LPCWSTR,LPCWSTR);
#define RegisterEventSource WINELIB_NAME_AW(RegisterEventSource)
DWORD WINAPI RegCreateKeyEx32A(HKEY,LPCSTR,DWORD,LPSTR,DWORD,REGSAM,
LPSECURITY_ATTRIBUTES,LPHKEY,LPDWORD);
DWORD WINAPI RegCreateKeyEx32W(HKEY,LPCWSTR,DWORD,LPWSTR,DWORD,REGSAM,
LPSECURITY_ATTRIBUTES,LPHKEY,LPDWORD);
#define RegCreateKeyEx WINELIB_NAME_AW(RegCreateKeyEx)
LONG WINAPI RegSaveKey32A(HKEY,LPCSTR,LPSECURITY_ATTRIBUTES);
LONG WINAPI RegSaveKey32W(HKEY,LPCWSTR,LPSECURITY_ATTRIBUTES);
#define RegSaveKey WINELIB_NAME_AW(RegSaveKey)
LONG WINAPI RegSetKeySecurity(HKEY,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR);
BOOL32 WINAPI CloseServiceHandle(HANDLE32);
BOOL32 WINAPI ControlService(HANDLE32,DWORD,LPSERVICE_STATUS);
BOOL32 WINAPI DeleteService(HANDLE32);
BOOL32 WINAPI DeregisterEventSource(HANDLE32);
BOOL32 WINAPI GetFileSecurity32A(LPCSTR,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR,DWORD,LPDWORD);
BOOL32 WINAPI GetFileSecurity32W(LPCWSTR,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR,DWORD,LPDWORD);
#define GetFileSecurity WINELIB_NAME_AW(GetFileSecurity)
BOOL32 WINAPI GetUserName32A(LPSTR,LPDWORD);
BOOL32 WINAPI GetUserName32W(LPWSTR,LPDWORD);
#define GetUserName WINELIB_NAME_AW(GetUserName)
BOOL32 WINAPI OpenProcessToken(HANDLE32,DWORD,HANDLE32*);
LONG WINAPI RegConnectRegistry32A(LPCSTR,HKEY,LPHKEY);
LONG WINAPI RegConnectRegistry32W(LPCWSTR,HKEY,LPHKEY);
#define RegConnectRegistry WINELIB_NAME_AW(RegConnectRegistry)
DWORD WINAPI RegEnumKeyEx32A(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPSTR,
LPDWORD,LPFILETIME);
DWORD WINAPI RegEnumKeyEx32W(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPWSTR,
LPDWORD,LPFILETIME);
#define RegEnumKeyEx WINELIB_NAME_AW(RegEnumKeyEx)
LONG WINAPI RegGetKeySecurity(HKEY,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR,LPDWORD);
LONG WINAPI RegLoadKey32A(HKEY,LPCSTR,LPCSTR);
LONG WINAPI RegLoadKey32W(HKEY,LPCWSTR,LPCWSTR);
#define RegLoadKey WINELIB_NAME_AW(RegLoadKey)
LONG WINAPI RegNotifyChangeKeyValue(HKEY,BOOL32,DWORD,HANDLE32,BOOL32);
DWORD WINAPI RegOpenKeyEx32W(HKEY,LPCWSTR,DWORD,REGSAM,LPHKEY);
DWORD WINAPI RegOpenKeyEx32A(HKEY,LPCSTR,DWORD,REGSAM,LPHKEY);
#define RegOpenKeyEx WINELIB_NAME_AW(RegOpenKeyEx)
DWORD WINAPI RegQueryInfoKey32W(HKEY,LPWSTR,LPDWORD,LPDWORD,LPDWORD,
LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,
LPDWORD,LPFILETIME);
DWORD WINAPI RegQueryInfoKey32A(HKEY,LPSTR,LPDWORD,LPDWORD,LPDWORD,
LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPDWORD,
LPDWORD,LPFILETIME);
#define RegQueryInfoKey WINELIB_NAME_AW(RegQueryInfoKey)
LONG WINAPI RegReplaceKey32A(HKEY,LPCSTR,LPCSTR,LPCSTR);
LONG WINAPI RegReplaceKey32W(HKEY,LPCWSTR,LPCWSTR,LPCWSTR);
#define RegReplaceKey WINELIB_NAME_AW(RegReplaceKey)
LONG WINAPI RegRestoreKey32A(HKEY,LPCSTR,DWORD);
LONG WINAPI RegRestoreKey32W(HKEY,LPCWSTR,DWORD);
#define RegRestoreKey WINELIB_NAME_AW(RegRestoreKey)
LONG WINAPI RegUnLoadKey32A(HKEY,LPCSTR);
LONG WINAPI RegUnLoadKey32W(HKEY,LPCWSTR);
#define RegUnLoadKey WINELIB_NAME_AW(RegUnLoadKey)
BOOL32 WINAPI SetFileSecurity32A(LPCSTR,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR);
BOOL32 WINAPI SetFileSecurity32W(LPCWSTR,SECURITY_INFORMATION,LPSECURITY_DESCRIPTOR);
#define SetFileSecurity WINELIB_NAME_AW(SetFileSecurity)
BOOL32 WINAPI StartService32A(HANDLE32,DWORD,LPCSTR*);
BOOL32 WINAPI StartService32W(HANDLE32,DWORD,LPCWSTR*);
#define StartService WINELIB_NAME_AW(StartService)
/* Declarations for functions that are the same in Win16 and Win32 */
DWORD WINAPI RegCloseKey(HKEY);
DWORD WINAPI RegFlushKey(HKEY);
DWORD WINAPI RegCreateKey32A(HKEY,LPCSTR,LPHKEY);
DWORD WINAPI RegCreateKey32W(HKEY,LPCWSTR,LPHKEY);
#define RegCreateKey WINELIB_NAME_AW(RegCreateKey)
DWORD WINAPI RegDeleteKey32A(HKEY,LPCSTR);
DWORD WINAPI RegDeleteKey32W(HKEY,LPWSTR);
#define RegDeleteKey WINELIB_NAME_AW(RegDeleteKey)
DWORD WINAPI RegDeleteValue32A(HKEY,LPSTR);
DWORD WINAPI RegDeleteValue32W(HKEY,LPWSTR);
#define RegDeleteValue WINELIB_NAME_AW(RegDeleteValue)
DWORD WINAPI RegEnumKey32A(HKEY,DWORD,LPSTR,DWORD);
DWORD WINAPI RegEnumKey32W(HKEY,DWORD,LPWSTR,DWORD);
#define RegEnumKey WINELIB_NAME_AW(RegEnumKey)
DWORD WINAPI RegEnumValue32A(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
DWORD WINAPI RegEnumValue32W(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
#define RegEnumValue WINELIB_NAME_AW(RegEnumValue)
DWORD WINAPI RegOpenKey32A(HKEY,LPCSTR,LPHKEY);
DWORD WINAPI RegOpenKey32W(HKEY,LPCWSTR,LPHKEY);
#define RegOpenKey WINELIB_NAME_AW(RegOpenKey)
DWORD WINAPI RegQueryValue32A(HKEY,LPSTR,LPSTR,LPDWORD);
DWORD WINAPI RegQueryValue32W(HKEY,LPWSTR,LPWSTR,LPDWORD);
#define RegQueryValue WINELIB_NAME_AW(RegQueryValue)
DWORD WINAPI RegQueryValueEx32A(HKEY,LPSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
DWORD WINAPI RegQueryValueEx32W(HKEY,LPWSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
#define RegQueryValueEx WINELIB_NAME_AW(RegQueryValueEx)
DWORD WINAPI RegSetValue32A(HKEY,LPCSTR,DWORD,LPCSTR,DWORD);
DWORD WINAPI RegSetValue32W(HKEY,LPCWSTR,DWORD,LPCWSTR,DWORD);
#define RegSetValue WINELIB_NAME_AW(RegSetValue)
DWORD WINAPI RegSetValueEx32A(HKEY,LPSTR,DWORD,DWORD,LPBYTE,DWORD);
DWORD WINAPI RegSetValueEx32W(HKEY,LPWSTR,DWORD,DWORD,LPBYTE,DWORD);
#define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx)
void SHELL_Init(void);
void SHELL_SaveRegistry(void);
void SHELL_LoadRegistry(void);
#endif /* __WINE_WINREG_H */

View File

@ -4,6 +4,23 @@
* Copyright 1996 Alexandre Julliard
*/
/* Misc. constants. */
#ifdef FALSE
#undef FALSE
#endif
#define FALSE 0
#ifdef TRUE
#undef TRUE
#endif
#define TRUE 1
#ifdef NULL
#undef NULL
#endif
#define NULL 0
#ifndef __WINE_WINTYPES_H
#define __WINE_WINTYPES_H
@ -324,23 +341,6 @@ DECL_WINELIB_TYPE(HWAVEIN)
DECL_WINELIB_TYPE(HWAVEOUT)
DECL_WINELIB_TYPE(HWND)
/* Misc. constants. */
#ifdef FALSE
#undef FALSE
#endif
#define FALSE 0
#ifdef TRUE
#undef TRUE
#endif
#define TRUE 1
#ifdef NULL
#undef NULL
#endif
#define NULL 0
/* Define some empty macros for compatibility with Windows code. */
#ifndef __WINE__

File diff suppressed because it is too large Load Diff

26
include/winver.h Normal file
View File

@ -0,0 +1,26 @@
#ifndef __WINE_WINVER_H
#define __WINE_WINVER_H
DWORD WINAPI VerFindFile16(UINT16,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16*,LPSTR,UINT16*);
DWORD WINAPI VerFindFile32A(UINT32,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT32*,LPSTR,UINT32*);
DWORD WINAPI VerFindFile32W(UINT32,LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT32*,LPWSTR,UINT32*);
#define VerFindFile WINELIB_NAME_AW(VerFindFile)
DWORD WINAPI VerInstallFile16(UINT16,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16*);
DWORD WINAPI VerInstallFile32A(UINT32,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT32*);
DWORD WINAPI VerInstallFile32W(UINT32,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT32*);
#define VerInstallFile WINELIB_NAME_AW(VerInstallFile)
DWORD WINAPI VerLanguageName16(UINT16,LPSTR,UINT16);
DWORD WINAPI VerQueryValue16(SEGPTR,LPCSTR,SEGPTR*,UINT16*);
DWORD WINAPI VerQueryValue32A(LPVOID,LPCSTR,LPVOID*,UINT32*);
DWORD WINAPI VerQueryValue32W(LPVOID,LPCWSTR,LPVOID*,UINT32*);
#define VerQueryValue WINELIB_NAME_AW(VerQueryValue)
DWORD WINAPI GetFileVersionInfoSize16(LPCSTR,LPDWORD);
DWORD WINAPI GetFileVersionInfoSize32A(LPCSTR,LPDWORD);
DWORD WINAPI GetFileVersionInfoSize32W(LPCWSTR,LPDWORD);
#define GetFileVersionInfoSize WINELIB_NAME_AW(GetFileVersionInfoSize)
DWORD WINAPI GetFileVersionInfo16(LPCSTR,DWORD,DWORD,LPVOID);
DWORD WINAPI GetFileVersionInfo32A(LPCSTR,DWORD,DWORD,LPVOID);
DWORD WINAPI GetFileVersionInfo32W(LPCWSTR,DWORD,DWORD,LPVOID);
#define GetFileVersionInfo WINELIB_NAME_AW(GetFileVersionInfo)
#endif /* __WINE_WINVER_H */