2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS net command
7 * PROGRAMMERS: Magnus Olsen (greatlord@reactos.org)
12 #define MAX_BUFFER_SIZE 4096
14 typedef struct _COMMAND
17 INT (*func
)(INT
, WCHAR
**);
18 // VOID (*help)(INT, WCHAR**);
23 {L
"accounts", cmdAccounts
},
24 {L
"computer", unimplemented
},
25 {L
"config", unimplemented
},
26 {L
"continue", cmdContinue
},
27 {L
"file", unimplemented
},
28 {L
"group", unimplemented
},
30 {L
"helpmsg", cmdHelpMsg
},
31 {L
"localgroup", unimplemented
},
32 {L
"name", unimplemented
},
34 {L
"print", unimplemented
},
35 {L
"send", unimplemented
},
36 {L
"session", unimplemented
},
37 {L
"share", unimplemented
},
39 {L
"statistics", unimplemented
},
41 {L
"time", unimplemented
},
42 {L
"use", unimplemented
},
43 {L
"user", unimplemented
},
44 {L
"view", unimplemented
},
54 WCHAR szMsgBuf
[MAX_BUFFER_SIZE
];
57 va_start(arg_ptr
, resID
);
58 LoadStringW(GetModuleHandle(NULL
), resID
, szMsgBuf
, MAX_BUFFER_SIZE
);
59 vwprintf(szMsgBuf
, arg_ptr
);
64 int wmain(int argc
, WCHAR
**argv
)
70 PrintResourceString(IDS_NET_SYNTAX
);
74 /* Scan the command table */
75 for (cmdptr
= cmds
; cmdptr
->name
; cmdptr
++)
77 if (_wcsicmp(argv
[1], cmdptr
->name
) == 0)
79 return cmdptr
->func(argc
, argv
);
83 PrintResourceString(IDS_NET_SYNTAX
);
88 INT
unimplemented(INT argc
, WCHAR
**argv
)
90 puts("This command is not implemented yet");