ReactOS  0.4.12-dev-18-gf469aca
callback.c File Reference
#include <stdio.h>
#include "windows.h"
#include "winhelp.h"
#include "wine/debug.h"
Include dependency graph for callback.c:

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (winhelp)
 
static WORD CALLBACK WHD_GetFSError (void)
 
static HANDLE CALLBACK WHD_Open (LPSTR name, BYTE flags)
 
static WORD CALLBACK WHD_Close (HANDLE fs)
 
static HANDLE CALLBACK WHD_OpenBag (HANDLE fs, LPSTR name, BYTE flags)
 
static HANDLE CALLBACK WHD_CloseBag (HANDLE bag)
 
static LONG CALLBACK WHD_ReadBag (HANDLE bag, BYTE *ptr, LONG len)
 
static LONG CALLBACK WHD_TellBag (HANDLE bag)
 
static LONG CALLBACK WHD_SeekBag (HANDLE bag, LONG offset, WORD whence)
 
static BOOL CALLBACK WHD_IsEofBag (HANDLE bag)
 
static LONG CALLBACK WHD_SizeBag (HANDLE bag)
 
static BOOL CALLBACK WHD_Access (HANDLE fs, LPSTR name, BYTE flags)
 
static WORD CALLBACK WHD_LLInfoFromBag (HANDLE bag, WORD opt, LPWORD p1, LPLONG p2, LPLONG p3)
 
static WORD CALLBACK WHD_LLInfoFromFile (HANDLE fs, LPSTR name, WORD opt, LPWORD p1, LPLONG p2, LPLONG p3)
 
static void CALLBACK WHD_Error (int err)
 
static void CALLBACK WHD_ErrorString (LPSTR err)
 
static ULONG_PTR CALLBACK WHD_GetInfo (WORD what, HWND hnd)
 
static LONG CALLBACK WHD_API (LPSTR x, WORD xx, DWORD xxx)
 

Variables

const struct winhelp_callbacks Callbacks
 

Macro Definition Documentation

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 21 of file callback.c.

Function Documentation

◆ WHD_Access()

static BOOL CALLBACK WHD_Access ( HANDLE  fs,
LPSTR  name,
BYTE  flags 
)
static

Definition at line 102 of file callback.c.

103 {
104  WINE_FIXME("()\n");
105  return FALSE;
106 }
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_API()

static LONG CALLBACK WHD_API ( LPSTR  x,
WORD  xx,
DWORD  xxx 
)
static

Definition at line 155 of file callback.c.

156 {
157  WINE_FIXME("()\n");
158  return 0;
159 }
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_Close()

static WORD CALLBACK WHD_Close ( HANDLE  fs)
static

Definition at line 53 of file callback.c.

54 {
55  WINE_FIXME("(%p)\n", fs);
56  CloseHandle(fs);
57  return 0;
58 }
#define CloseHandle
Definition: compat.h:398
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_CloseBag()

static HANDLE CALLBACK WHD_CloseBag ( HANDLE  bag)
static

Definition at line 66 of file callback.c.

67 {
68  WINE_FIXME("()\n");
69  return NULL;
70 }
smooth NULL
Definition: ftsmooth.c:416
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_Error()

static void CALLBACK WHD_Error ( int  err)
static

Definition at line 120 of file callback.c.

121 {
122  WINE_FIXME("()\n");
123 }
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_ErrorString()

static void CALLBACK WHD_ErrorString ( LPSTR  err)
static

Definition at line 125 of file callback.c.

126 {
127  WINE_FIXME("()\n");
128 }
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_GetFSError()

static WORD CALLBACK WHD_GetFSError ( void  )
static

Definition at line 32 of file callback.c.

33 {
34  WINE_FIXME("()\n");
35  return 0;
36 }
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_GetInfo()

static ULONG_PTR CALLBACK WHD_GetInfo ( WORD  what,
HWND  hnd 
)
static

Definition at line 130 of file callback.c.

131 {
132  ULONG_PTR ret = 0;
133 
134  WINE_TRACE("(%x %p)\n", what, hnd);
135  switch (what)
136  {
137  case 0: break;
138  case 1: /* instance */ ret = (ULONG_PTR)Globals.hInstance; break;
139  case 3: /* current window */ ret = (ULONG_PTR)Globals.active_win->hMainWnd; break;
140  case 2: /* main window */
141  case 4: /* handle to opened file */
142  case 5: /* foreground color */
143  case 6: /* background color */
144  case 7: /* topic number */
145  case 8: /* current opened file name */
146  WINE_FIXME("NIY %u\n", what);
147  break;
148  default:
149  WINE_FIXME("Undocumented %u\n", what);
150  break;
151  }
152  return ret;
153 }
#define WINE_TRACE
Definition: debug.h:358
uint32_t ULONG_PTR
Definition: typedefs.h:63
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
int ret
#define ULONG_PTR
Definition: config.h:101
HINSTANCE hInstance
Definition: precomp.h:43
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_IsEofBag()

static BOOL CALLBACK WHD_IsEofBag ( HANDLE  bag)
static

Definition at line 90 of file callback.c.

91 {
92  WINE_FIXME("()\n");
93  return FALSE;
94 }
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_LLInfoFromBag()

static WORD CALLBACK WHD_LLInfoFromBag ( HANDLE  bag,
WORD  opt,
LPWORD  p1,
LPLONG  p2,
LPLONG  p3 
)
static

Definition at line 108 of file callback.c.

109 {
110  WINE_FIXME("()\n");
111  return 0;
112 }
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_LLInfoFromFile()

static WORD CALLBACK WHD_LLInfoFromFile ( HANDLE  fs,
LPSTR  name,
WORD  opt,
LPWORD  p1,
LPLONG  p2,
LPLONG  p3 
)
static

Definition at line 114 of file callback.c.

115 {
116  WINE_FIXME("()\n");
117  return 0;
118 }
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_Open()

static HANDLE CALLBACK WHD_Open ( LPSTR  name,
BYTE  flags 
)
static

Definition at line 38 of file callback.c.

39 {
40  unsigned mode = 0;
41 
42  WINE_FIXME("(%s %x)\n", debugstr_a(name), flags);
43  switch (flags)
44  {
45  case 0: mode = GENERIC_READ | GENERIC_WRITE; break;
46  case 2: mode = GENERIC_READ; break;
47  default: WINE_FIXME("Undocumented flags %x\n", flags);
48  }
51 }
#define FILE_SHARE_WRITE
Definition: nt_native.h:681
#define FILE_SHARE_READ
Definition: compat.h:125
#define GENERIC_WRITE
Definition: nt_native.h:90
smooth NULL
Definition: ftsmooth.c:416
#define OPEN_EXISTING
Definition: compat.h:426
#define debugstr_a
Definition: kernel32.h:31
GLbitfield flags
Definition: glext.h:7161
#define FILE_ATTRIBUTE_NORMAL
Definition: compat.h:126
#define GENERIC_READ
Definition: compat.h:124
Definition: name.c:36
#define CreateFileA(a, b, c, d, e, f, g)
Definition: compat.h:399
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_OpenBag()

static HANDLE CALLBACK WHD_OpenBag ( HANDLE  fs,
LPSTR  name,
BYTE  flags 
)
static

Definition at line 60 of file callback.c.

61 {
62  WINE_FIXME("(%p %s %x)\n", fs, debugstr_a(name), flags);
63  return NULL;
64 }
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_a
Definition: kernel32.h:31
GLbitfield flags
Definition: glext.h:7161
Definition: name.c:36
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_ReadBag()

static LONG CALLBACK WHD_ReadBag ( HANDLE  bag,
BYTE ptr,
LONG  len 
)
static

Definition at line 72 of file callback.c.

73 {
74  WINE_FIXME("()\n");
75  return 0;
76 }
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_SeekBag()

static LONG CALLBACK WHD_SeekBag ( HANDLE  bag,
LONG  offset,
WORD  whence 
)
static

Definition at line 84 of file callback.c.

85 {
86  WINE_FIXME("()\n");
87  return 0;
88 }
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_SizeBag()

static LONG CALLBACK WHD_SizeBag ( HANDLE  bag)
static

Definition at line 96 of file callback.c.

97 {
98  WINE_FIXME("()\n");
99  return 0;
100 }
#define WINE_FIXME
Definition: debug.h:370

◆ WHD_TellBag()

static LONG CALLBACK WHD_TellBag ( HANDLE  bag)
static

Definition at line 78 of file callback.c.

79 {
80  WINE_FIXME("()\n");
81  return 0;
82 }
#define WINE_FIXME
Definition: debug.h:370

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( winhelp  )

Variable Documentation

◆ Callbacks

Initial value:
=
{
}
static LONG CALLBACK WHD_TellBag(HANDLE bag)
Definition: callback.c:78
static WORD CALLBACK WHD_LLInfoFromBag(HANDLE bag, WORD opt, LPWORD p1, LPLONG p2, LPLONG p3)
Definition: callback.c:108
static LONG CALLBACK WHD_API(LPSTR x, WORD xx, DWORD xxx)
Definition: callback.c:155
static LONG CALLBACK WHD_SeekBag(HANDLE bag, LONG offset, WORD whence)
Definition: callback.c:84
static BOOL CALLBACK WHD_IsEofBag(HANDLE bag)
Definition: callback.c:90
static LONG CALLBACK WHD_SizeBag(HANDLE bag)
Definition: callback.c:96
static HANDLE CALLBACK WHD_CloseBag(HANDLE bag)
Definition: callback.c:66
static WORD CALLBACK WHD_Close(HANDLE fs)
Definition: callback.c:53
static WORD CALLBACK WHD_GetFSError(void)
Definition: callback.c:32
static void CALLBACK WHD_ErrorString(LPSTR err)
Definition: callback.c:125
static BOOL CALLBACK WHD_Access(HANDLE fs, LPSTR name, BYTE flags)
Definition: callback.c:102
static ULONG_PTR CALLBACK WHD_GetInfo(WORD what, HWND hnd)
Definition: callback.c:130
static HANDLE CALLBACK WHD_OpenBag(HANDLE fs, LPSTR name, BYTE flags)
Definition: callback.c:60
static WORD CALLBACK WHD_LLInfoFromFile(HANDLE fs, LPSTR name, WORD opt, LPWORD p1, LPLONG p2, LPLONG p3)
Definition: callback.c:114
static void CALLBACK WHD_Error(int err)
Definition: callback.c:120
static LONG CALLBACK WHD_ReadBag(HANDLE bag, BYTE *ptr, LONG len)
Definition: callback.c:72
static HANDLE CALLBACK WHD_Open(LPSTR name, BYTE flags)
Definition: callback.c:38

Definition at line 161 of file callback.c.

Referenced by FltRegisterFilter(), MACRO_RegisterRoutine(), RosSymInit(), SetupDispatchAndCallbacksTables(), TbdAddToolbar(), and TestIrpHandler().