mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.9 KiB
79 lines
1.9 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1994.
|
|
//
|
|
// File: userapis.h
|
|
//
|
|
// Contents: Prototypes and macors for stack switching
|
|
//
|
|
// Classes:
|
|
//
|
|
// Functions:
|
|
//
|
|
// History: 12-30-94 JohannP (Johann Posch) Created
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef _USERAPIS_
|
|
#define _USERAPIS_
|
|
|
|
#ifdef _CHICAGO_
|
|
|
|
#undef SendMessage
|
|
#undef ReplyMessage
|
|
#undef CallWindowProc
|
|
#undef DefWindowProc
|
|
#undef PeekMessage
|
|
#undef GetMessage
|
|
#undef DispatchMessage
|
|
#undef WaitMessage
|
|
#undef MsgWaitForMultipleObjects
|
|
#undef DirectedYield
|
|
#undef DialogBoxParam
|
|
#undef DialogBoxIndirectParam
|
|
#undef DestroyWindow
|
|
#undef MessageBox
|
|
#undef CreateWindowExA
|
|
#undef CreateWindowExW
|
|
#undef CreateProcessA
|
|
#undef InSendMessage
|
|
|
|
// Clipboard apis
|
|
#undef OpenClipboard
|
|
#undef CloseClipboard
|
|
#undef GetClipboardOwner
|
|
#undef SetClipboardData
|
|
#undef GetClipboardData
|
|
#undef EnumClipboardFormats
|
|
#undef EmptyClipboard
|
|
#undef RegisterClipboardFormatA
|
|
#undef GetClipboardFormatNameA
|
|
#undef IsClipboardFormatAvailable
|
|
|
|
//
|
|
// Restore original definitions as in winuser.h
|
|
//
|
|
|
|
#define SendMessage SendMessageA
|
|
#define CallWindowProc CallWindowProcA
|
|
#define DefWindowProc DefWindowProcA
|
|
#define PeekMessage PeekMessageA
|
|
#define GetMessage GetMessageA
|
|
#define MsgWaitForMultipleObjects MsgWaitForMultipleObjects
|
|
#define DispatchMessage DispatchMessageA
|
|
#define DialogBoxParam DialogBoxParamA
|
|
#define DialogBoxIndirectParam DialogBoxIndirectParamA
|
|
#define MessageBox MessageBoxA
|
|
|
|
|
|
#undef DialogBox
|
|
#define DialogBox(a,b,c,d) \
|
|
DialogBoxParamA(a,b,c,d, 0L)
|
|
#undef DialogBoxIndirect
|
|
#define DialogBoxIndirect(a,b,c,d) \
|
|
DialogBoxIndirectParamA(a,b,c,d,e, 0L)
|
|
|
|
#endif // _CHICAGO_
|
|
|
|
#endif // _USERAPIS_
|