30 if (pParentContext !=
NULL && pszName ==
NULL)
54 pEntry->pParentContext = pParentContext;
59 if (pParentContext !=
NULL)
83 DWORD dwShortCmdHelpToken,
89 if (pfnCmdHandler ==
NULL)
108 pEntry->pfnCmdHandler = pfnCmdHandler;
109 pEntry->dwShortCmdHelpToken = dwShortCmdHelpToken;
110 pEntry->dwCmdHlpToken = dwCmdHlpToken;
133 DWORD dwShortCmdHelpToken,
153 pEntry->dwShortCmdHelpToken = dwShortCmdHelpToken;
177 DWORD dwShortCmdHelpToken,
183 if (pfnCmdHandler ==
NULL)
202 pEntry->pfnCmdHandler = pfnCmdHandler;
203 pEntry->dwShortCmdHelpToken = dwShortCmdHelpToken;
204 pEntry->dwCmdHlpToken = dwCmdHlpToken;
237 DWORD dwCurrentIndex,
255 DWORD dwCurrentIndex,
271 DWORD dwCurrentIndex,
332 DPRINT1(
"RegisterContext(%p)\n", pChildContext);
333 if (pChildContext ==
NULL)
335 DPRINT1(
"Invalid child context!\n");
339 if ((pChildContext->pwszContext ==
NULL) ||
340 (
wcslen(pChildContext->pwszContext) == 0) ||
341 (
wcschr(pChildContext->pwszContext,
L' ') != 0) ||
342 (
wcschr(pChildContext->pwszContext,
L'=') != 0))
344 DPRINT1(
"Invalid context name!\n");
348 DPRINT1(
"Name: %S\n", pChildContext->pwszContext);
351 if (pContext !=
NULL)
353 for (
i = 0;
i < pChildContext->ulNumTopCmds;
i++)
356 pChildContext->pTopCmds[
i].pwszCmdToken,
357 pChildContext->pTopCmds[
i].pfnCmdHandler,
358 pChildContext->pTopCmds[
i].dwShortCmdHelpToken,
359 pChildContext->pTopCmds[
i].dwCmdHlpToken,
360 pChildContext->pTopCmds[
i].dwFlags);
364 for (
i = 0;
i < pChildContext->ulNumGroups;
i++)
367 pChildContext->pCmdGroups[
i].pwszCmdGroupToken,
368 pChildContext->pCmdGroups[
i].dwShortCmdHelpToken,
369 pChildContext->pCmdGroups[
i].dwFlags);
BOOL CreateRootContext(VOID)
PCOMMAND_GROUP AddCommandGroup(PCONTEXT_ENTRY pContext, LPCWSTR pwszCmdGroupToken, DWORD dwShortCmdHelpToken, DWORD dwFlags)
DWORD WINAPI RemCommand(LPCWSTR pwszMachine, LPWSTR *argv, DWORD dwCurrentIndex, DWORD dwArgCount, DWORD dwFlags, LPCVOID pvData, BOOL *pbDone)
DWORD WINAPI RegisterContext(_In_ const NS_CONTEXT_ATTRIBUTES *pChildContext)
PCOMMAND_ENTRY AddContextCommand(PCONTEXT_ENTRY pContext, LPCWSTR pwszCmdToken, PFN_HANDLE_CMD pfnCmdHandler, DWORD dwShortCmdHelpToken, DWORD dwCmdHlpToken, DWORD dwFlags)
PCOMMAND_ENTRY AddGroupCommand(PCOMMAND_GROUP pGroup, LPCWSTR pwszCmdToken, PFN_HANDLE_CMD pfnCmdHandler, DWORD dwShortCmdHelpToken, DWORD dwCmdHlpToken, DWORD dwFlags)
PCONTEXT_ENTRY pRootContext
PCONTEXT_ENTRY pCurrentContext
DWORD WINAPI UpCommand(LPCWSTR pwszMachine, LPWSTR *argv, DWORD dwCurrentIndex, DWORD dwArgCount, DWORD dwFlags, LPCVOID pvData, BOOL *pbDone)
VOID DeleteContext(PWSTR pszName)
PCONTEXT_ENTRY AddContext(PCONTEXT_ENTRY pParentContext, PWSTR pszName, GUID *pGuid)
DWORD WINAPI ExitCommand(LPCWSTR pwszMachine, LPWSTR *argv, DWORD dwCurrentIndex, DWORD dwArgCount, DWORD dwFlags, LPCVOID pvData, BOOL *pbDone)
DWORD WINAPI HelpCommand(LPCWSTR pwszMachine, LPWSTR *ppwcArguments, DWORD dwCurrentIndex, DWORD dwArgCount, DWORD dwFlags, LPCVOID pvData, BOOL *pbDone)
#define IDS_HLP_DEL_HELPER
#define IDS_HLP_GROUP_ADD
#define IDS_HLP_GROUP_SHOW
#define IDS_HLP_DEL_HELPER_EX
#define IDS_HLP_GROUP_DELETE
#define IDS_HLP_SHOW_HELPER
#define IDS_HLP_ADD_HELPER_EX
#define IDS_HLP_SHOW_HELPER_EX
#define IDS_HLP_ADD_HELPER
#define ERROR_INVALID_PARAMETER
#define HeapFree(x, y, z)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
DWORD WINAPI ShowHelperCommand(LPCWSTR pwszMachine, LPWSTR *ppwcArguments, DWORD dwCurrentIndex, DWORD dwArgCount, DWORD dwFlags, LPCVOID pvData, BOOL *pbDone)
DWORD WINAPI AddHelperCommand(LPCWSTR pwszMachine, LPWSTR *ppwcArguments, DWORD dwCurrentIndex, DWORD dwArgCount, DWORD dwFlags, LPCVOID pvData, BOOL *pbDone)
DWORD WINAPI DeleteHelperCommand(LPCWSTR pwszMachine, LPWSTR *ppwcArguments, DWORD dwCurrentIndex, DWORD dwArgCount, DWORD dwFlags, LPCVOID pvData, BOOL *pbDone)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
DWORD(WINAPI * PFN_HANDLE_CMD)(_In_ LPCWSTR pwszMachine, _In_ LPWSTR *ppwcArguments, _In_ DWORD dwCurrentIndex, _In_ DWORD dwArgCount, _In_ DWORD dwFlags, _In_ LPCVOID pvData, _Out_ BOOL *pbDone)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
struct _COMMAND_ENTRY * pNext
PCOMMAND_ENTRY pCommandListTail
PCOMMAND_ENTRY pCommandListHead
struct _COMMAND_GROUP * pNext
PCOMMAND_ENTRY pCommandListTail
PCOMMAND_GROUP pGroupListTail
struct _CONTEXT_ENTRY * pSubContextHead
struct _CONTEXT_ENTRY * pParentContext
PCOMMAND_GROUP pGroupListHead
PCOMMAND_ENTRY pCommandListHead
struct _CONTEXT_ENTRY * pSubContextTail
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
_In_ ULONG _In_opt_ PVOID pvData