windows-nt/Source/XPSP1/NT/ds/adsi/drt/adscmd/dispdef.hxx

20 lines
444 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef __DISPDEF__
#define __DISPDEF__
typedef void (*HELPFUNC)(char *, char *);
typedef int (*EXECFUNC)(char *, char*, int, char* []);
struct DISPENTRY {
char* action;
HELPFUNC help;
EXECFUNC exec;
};
#define DEFHELP(x) void x(char *, char *)
#define DEFEXEC(x) int x(char *, char *, int, char* []);
#define DEFDISPTABLE(t) static DISPENTRY t[]
#define DEFDISPSIZE(n, t) static int n = sizeof(t) / sizeof(DISPENTRY);
#endif