大网数据广告活动
域与目录服务

PARSE.CPP

· 52CE 我爱测

In the example provider component, a code example of the directory service path parser is in Parse.cpp.

In the example provider component, a code example of the directory service path parser is in Parse.cpp. The path parser is a key component in ADs provider components. It verifies the syntactic validity of an ADs path passed to this provider. If the syntax is valid, an OBJECTINFO structure is constructed, which contains a componentized version of the ADspath for this object.

Be aware that this is only a syntax verification. Rather than special-case every new iteration of path, all path verification must conform to the grammar rules established by the parser.

The following table lists the functions and methods implemented in Parse.cpp.

Item Description
ADsObject Parses the ADspath passed to it. This function follows the following grammar rules: <ADsObject> -> <ProviderName> <SampleDSObject>
SampleDSObject Parses the following grammar rules: <SampleDSObject> -> "\\" <identifier> "\" <Pathname>
ProviderName Adds in the syntactically correct provider name if not there.
PathName Parses the following grammar rules: <Pathname> -> <Component> "\\" <Pathname> OR <Pathname> -> <Component>
Component Parses the following grammar rules: <Identifier> OR <Identifier> "=" <Identifier>
CLexer::CLexer Standard constructor.
CLexer::~CLexer Standard destructor.
CLexer::GetNextToken Tokenizer.
CLexer::NextChar Retrieves next single character.
CLexer::PushBackToken Backs up to the start of the last token.
CLexer::PushbackChar Backs up one character.
CLexer::IsKeyword Verifies keyword list. Defined in Globals.h).
AddComponent Adds this component to the component array.
AddProviderName Adds a syntactically correct provider name to the OBJECTINFO structure.
AddRootRDN Adds the syntactically correct root relative distinguished name (RDN) name to the OBJECTINFO structure.
SetType Sets the type of the object.
Type Parses Type-> "user" | "group" and so on.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。