#include "precomp.h"
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ GetContextFullName()
Definition at line 19 of file help.c.
23{
24 if (pContext->pParentContext !=
NULL)
25 {
28 wcscat(pszBuffer, pContext->pszContextName);
29 }
30 else
31 {
33 }
34}
static VOID GetContextFullName(_In_ PCONTEXT_ENTRY pContext, _Inout_ LPWSTR pszBuffer, _In_ DWORD cchLength)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
Referenced by GetContextFullName(), and HelpContext().
◆ HelpCommand()
Definition at line 116 of file help.c.
124{
126
128
130 if (pContext ==
NULL)
131 {
132 DPRINT1(
"HelpCommand: invalid context %p\n", pContext);
133 return 1;
134 }
135
137
139 {
142 while (pContext !=
NULL)
143 {
145 pContext = pContext->
pNext;
146 }
148 }
150
152}
void ConPuts(FILE *fp, LPCWSTR psz)
void ConPrintf(FILE *fp, LPCWSTR psz,...)
void ConResPrintf(FILE *fp, UINT nID,...)
PCONTEXT_ENTRY pCurrentContext
static VOID HelpContext(PCONTEXT_ENTRY pContext)
#define IDS_SUBCONTEXT_HEADER
struct _CONTEXT_ENTRY * pSubContextHead
struct _CONTEXT_ENTRY * pNext
Referenced by CreateRootContext(), help_main(), InterpretCmd(), and main().
◆ HelpContext()
Definition at line 39 of file help.c.
41{
46
49
51 {
53 }
55 {
57 }
58 else
59 {
62 }
63
65 while (pCommand !=
NULL)
66 {
70 pCommand = pCommand->
pNext;
71 }
72
74 while (pGroup !=
NULL)
75 {
79 pGroup = pGroup->
pNext;
80 }
81
83 while (pSubContext !=
NULL)
84 {
87 pSubContext = pSubContext->
pNext;
88 }
89}
PCONTEXT_ENTRY pRootContext
DWORD dwShortCmdHelpToken
struct _COMMAND_ENTRY * pNext
LPCWSTR pwszCmdGroupToken
struct _COMMAND_GROUP * pNext
DWORD dwShortCmdHelpToken
struct _CONTEXT_ENTRY * pParentContext
PCOMMAND_GROUP pGroupListHead
PCOMMAND_ENTRY pCommandListHead
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
Referenced by HelpCommand(), HelpContext(), MSFT_DoFuncs(), and MSFT_DoVars().
◆ HelpGroup()
Definition at line 93 of file help.c.
95{
98
100
102
104 while (pCommand !=
NULL)
105 {
109 pCommand = pCommand->
pNext;
110 }
111}
void ConResPuts(FILE *fp, UINT nID)
PCOMMAND_ENTRY pCommandListHead
Referenced by InterpretCommand().