// --------------------------------------------------------------------------
//
//  PATCH.H
//
//  16-bit DDI patching dll header file, for clients.
//
// --------------------------------------------------------------------------

typedef struct tagPATCH NEAR*    HPATCH;


HPATCH WINAPI   PatchDdi(HWND, HGLOBAL, DDITYPE);

BOOL   WINAPI   UnpatchDdi(HPATCH);


//
// Messages to the hwnd passed in to PatchDdi
//

#define WM_DDICALL          (WM_APP)
    // wParam is type
    // lParam is LPSTR, allocated out of app's heap

#define WM_ENDDDIPATCH      (WM_APP+1)
    // wParam is nothing
    // lParam is count of DDI trapped calls



