jwaadstlb.pas 364 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302
  1. // $Id: JwaAdsTLB.pas,v 1.5 2005/09/03 13:12:10 marquardt Exp $
  2. unit JwaAdsTLB;
  3. // ************************************************************************ //
  4. // WARNING
  5. // -------
  6. // The types declared in this file were generated from data read from a
  7. // Type Library. If this type library is explicitly or indirectly (via
  8. // another type library referring to this type library) re-imported, or the
  9. // 'Refresh' command of the Type Library Editor activated while editing the
  10. // Type Library, the contents of this file will be regenerated and all
  11. // manual modifications will be lost.
  12. // ************************************************************************ //
  13. // (rom) deactivated CVS string
  14. // PASTLWTR : Revision: 1.88.1.0.1.0
  15. // File generated on 9/25/2000 11:37:09 AM from Type Library described below.
  16. // *************************************************************************//
  17. // NOTE:
  18. // Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties
  19. // which return objects that may need to be explicitly created via a function
  20. // call prior to any access via the property. These items have been disabled
  21. // in order to prevent accidental use from within the object inspector. You
  22. // may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively
  23. // removing them from the $IFDEF blocks. However, such items must still be
  24. // programmatically created via a method of the appropriate CoClass before
  25. // they can be used.
  26. // ************************************************************************ //
  27. // Type Lib: C:\WINNT\system32\activeds.tlb (1)
  28. // IID\LCID: {97D25DB0-0363-11CF-ABC4-02608C9E7553}\0
  29. // Helpfile:
  30. // DepndLst:
  31. // (1) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
  32. // (2) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
  33. // Errors:
  34. // Hint: Member 'String' of '_ADS_CASEIGNORE_LIST' changed to 'String_'
  35. // Hint: Member 'Type' of '__MIDL___MIDL_itf_ads_0000_0005' changed to 'Type_'
  36. // Hint: Member 'Type' of '__MIDL___MIDL_itf_ads_0000_0014' changed to 'Type_'
  37. // Hint: Member 'Class' of 'IADs' changed to 'Class_'
  38. // Hint: Member 'Set' of 'IADsNameTranslate' changed to 'Set_'
  39. // Hint: Member 'Type' of 'IADsEmail' changed to 'Type_'
  40. // Hint: Member 'Type' of 'IADsPath' changed to 'Type_'
  41. // Hint: Member 'Set' of 'IADsPathname' changed to 'Set_'
  42. // Error creating palette bitmap of (TPropertyEntry) : Server activeds.dll contains no icons
  43. // Error creating palette bitmap of (TPropertyValue) : Server activeds.dll contains no icons
  44. // Error creating palette bitmap of (TAccessControlEntry) : Server activeds.dll contains no icons
  45. // Error creating palette bitmap of (TAccessControlList) : Server activeds.dll contains no icons
  46. // Error creating palette bitmap of (TSecurityDescriptor) : Server activeds.dll contains no icons
  47. // Error creating palette bitmap of (TLargeInteger) : Server activeds.dll contains no icons
  48. // Error creating palette bitmap of (TNameTranslate) : Server activeds.dll contains no icons
  49. // Error creating palette bitmap of (TCaseIgnoreList) : Server activeds.dll contains no icons
  50. // Error creating palette bitmap of (TFaxNumber) : Server activeds.dll contains no icons
  51. // Error creating palette bitmap of (TNetAddress) : Server activeds.dll contains no icons
  52. // Error creating palette bitmap of (TOctetList) : Server activeds.dll contains no icons
  53. // Error creating palette bitmap of (TEmail) : Server activeds.dll contains no icons
  54. // Error creating palette bitmap of (TPath) : Server activeds.dll contains no icons
  55. // Error creating palette bitmap of (TReplicaPointer) : Server activeds.dll contains no icons
  56. // Error creating palette bitmap of (TAcl) : Server activeds.dll contains no icons
  57. // Error creating palette bitmap of (TTimestamp) : Server activeds.dll contains no icons
  58. // Error creating palette bitmap of (TPostalAddress) : Server activeds.dll contains no icons
  59. // Error creating palette bitmap of (TBackLink) : Server activeds.dll contains no icons
  60. // Error creating palette bitmap of (TTypedName) : Server activeds.dll contains no icons
  61. // Error creating palette bitmap of (THold) : Server activeds.dll contains no icons
  62. // Error creating palette bitmap of (TPathname) : Server activeds.dll contains no icons
  63. // Error creating palette bitmap of (TADSystemInfo) : Server activeds.dll contains no icons
  64. // Error creating palette bitmap of (TWinNTSystemInfo) : Server activeds.dll contains no icons
  65. // Error creating palette bitmap of (TDNWithBinary) : Server activeds.dll contains no icons
  66. // Error creating palette bitmap of (TDNWithString) : Server activeds.dll contains no icons
  67. // ************************************************************************ //
  68. {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
  69. interface
  70. {$i jediapilib.inc}
  71. uses
  72. Windows, ActiveX, Classes {$IFNDEF NOVCL} , Graphics, OleServer, OleCtrls, StdVCL {$ENDIF} ;
  73. {$IFDEF FPC}
  74. Type
  75. // Temporary dummies to get FPC working.
  76. TServerData= Record
  77. ClassID: TGUID;
  78. IntfIID: TGUID;
  79. EventIID: String; // probably TGUID too
  80. LicenseKey: pointer;
  81. Version: integer
  82. end;
  83. TOleServer = Class(TComponent) // for registercomponents to work
  84. private
  85. ServerData : ^TServerData;
  86. public
  87. function GetServer:IUnknown;
  88. procedure InitServerData; virtual;
  89. constructor Create(AOwner: TComponent); virtual;
  90. Procedure Connect; virtual;
  91. procedure Disconnect; virtual;
  92. end;
  93. SysUINT = Windows.UINT;
  94. SysINT = Windows.WINT;
  95. {$endif}
  96. // *********************************************************************//
  97. // GUIDS declared in the TypeLibrary. Following prefixes are used:
  98. // Type Libraries : LIBID_xxxx
  99. // CoClasses : CLASS_xxxx
  100. // DISPInterfaces : DIID_xxxx
  101. // Non-DISP interfaces: IID_xxxx
  102. // *********************************************************************//
  103. const
  104. // TypeLibrary Major and minor versions
  105. ActiveDsMajorVersion = 1;
  106. ActiveDsMinorVersion = 0;
  107. LIBID_ActiveDs: TGUID = '{97D25DB0-0363-11CF-ABC4-02608C9E7553}';
  108. IID_IADs: TGUID = '{FD8256D0-FD15-11CE-ABC4-02608C9E7553}';
  109. IID_IADsContainer: TGUID = '{001677D0-FD16-11CE-ABC4-02608C9E7553}';
  110. IID_IADsCollection: TGUID = '{72B945E0-253B-11CF-A988-00AA006BC149}';
  111. IID_IADsMembers: TGUID = '{451A0030-72EC-11CF-B03B-00AA006E0975}';
  112. IID_IADsPropertyList: TGUID = '{C6F602B6-8F69-11D0-8528-00C04FD8D503}';
  113. IID_IADsPropertyEntry: TGUID = '{05792C8E-941F-11D0-8529-00C04FD8D503}';
  114. CLASS_PropertyEntry: TGUID = '{72D3EDC2-A4C4-11D0-8533-00C04FD8D503}';
  115. IID_IADsPropertyValue: TGUID = '{79FA9AD0-A97C-11D0-8534-00C04FD8D503}';
  116. IID_IADsPropertyValue2: TGUID = '{306E831C-5BC7-11D1-A3B8-00C04FB950DC}';
  117. CLASS_PropertyValue: TGUID = '{7B9E38B0-A97C-11D0-8534-00C04FD8D503}';
  118. IID_IPrivateDispatch: TGUID = '{86AB4BBE-65F6-11D1-8C13-00C04FD8D503}';
  119. IID_ITypeInfo: TGUID = '{00020401-0000-0000-C000-000000000046}';
  120. IID_ITypeComp: TGUID = '{00020403-0000-0000-C000-000000000046}';
  121. IID_ITypeLib: TGUID = '{00020402-0000-0000-C000-000000000046}';
  122. IID_IPrivateUnknown: TGUID = '{89126BAB-6EAD-11D1-8C18-00C04FD8D503}';
  123. IID_IADsExtension: TGUID = '{3D35553C-D2B0-11D1-B17B-0000F87593A0}';
  124. IID_IADsDeleteOps: TGUID = '{B2BD0902-8878-11D1-8C21-00C04FD8D503}';
  125. IID_IADsNamespaces: TGUID = '{28B96BA0-B330-11CF-A9AD-00AA006BC149}';
  126. IID_IADsClass: TGUID = '{C8F93DD0-4AE0-11CF-9E73-00AA004A5691}';
  127. IID_IADsProperty: TGUID = '{C8F93DD3-4AE0-11CF-9E73-00AA004A5691}';
  128. IID_IADsSyntax: TGUID = '{C8F93DD2-4AE0-11CF-9E73-00AA004A5691}';
  129. IID_IADsLocality: TGUID = '{A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}';
  130. IID_IADsO: TGUID = '{A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}';
  131. IID_IADsOU: TGUID = '{A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}';
  132. IID_IADsDomain: TGUID = '{00E4C220-FD16-11CE-ABC4-02608C9E7553}';
  133. IID_IADsComputer: TGUID = '{EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}';
  134. IID_IADsComputerOperations: TGUID = '{EF497680-1D9F-11CF-B1F3-02608C9E7553}';
  135. IID_IADsGroup: TGUID = '{27636B00-410F-11CF-B1FF-02608C9E7553}';
  136. IID_IADsUser: TGUID = '{3E37E320-17E2-11CF-ABC4-02608C9E7553}';
  137. IID_IADsPrintQueue: TGUID = '{B15160D0-1226-11CF-A985-00AA006BC149}';
  138. IID_IADsPrintQueueOperations: TGUID = '{124BE5C0-156E-11CF-A986-00AA006BC149}';
  139. IID_IADsPrintJob: TGUID = '{32FB6780-1ED0-11CF-A988-00AA006BC149}';
  140. IID_IADsPrintJobOperations: TGUID = '{9A52DB30-1ECF-11CF-A988-00AA006BC149}';
  141. IID_IADsService: TGUID = '{68AF66E0-31CA-11CF-A98A-00AA006BC149}';
  142. IID_IADsServiceOperations: TGUID = '{5D7B33F0-31CA-11CF-A98A-00AA006BC149}';
  143. IID_IADsFileService: TGUID = '{A89D1900-31CA-11CF-A98A-00AA006BC149}';
  144. IID_IADsFileServiceOperations: TGUID = '{A02DED10-31CA-11CF-A98A-00AA006BC149}';
  145. IID_IADsFileShare: TGUID = '{EB6DCAF0-4B83-11CF-A995-00AA006BC149}';
  146. IID_IADsSession: TGUID = '{398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}';
  147. IID_IADsResource: TGUID = '{34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}';
  148. IID_IADsOpenDSObject: TGUID = '{DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}';
  149. IID_IDirectoryObject: TGUID = '{E798DE2C-22E4-11D0-84FE-00C04FD8D503}';
  150. IID_IDirectorySearch: TGUID = '{109BA8EC-92F0-11D0-A790-00C04FD8D5A8}';
  151. IID_IDirectorySchemaMgmt: TGUID = '{75DB3B9C-A4D8-11D0-A79C-00C04FD8D5A8}';
  152. IID_IADsAggregatee: TGUID = '{1346CE8C-9039-11D0-8528-00C04FD8D503}';
  153. IID_IADsAggregator: TGUID = '{52DB5FB0-941F-11D0-8529-00C04FD8D503}';
  154. IID_IADsAccessControlEntry: TGUID = '{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}';
  155. CLASS_AccessControlEntry: TGUID = '{B75AC000-9BDD-11D0-852C-00C04FD8D503}';
  156. IID_IADsAccessControlList: TGUID = '{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}';
  157. CLASS_AccessControlList: TGUID = '{B85EA052-9BDD-11D0-852C-00C04FD8D503}';
  158. IID_IADsSecurityDescriptor: TGUID = '{B8C787CA-9BDD-11D0-852C-00C04FD8D503}';
  159. CLASS_SecurityDescriptor: TGUID = '{B958F73C-9BDD-11D0-852C-00C04FD8D503}';
  160. IID_IADsLargeInteger: TGUID = '{9068270B-0939-11D1-8BE1-00C04FD8D503}';
  161. CLASS_LargeInteger: TGUID = '{927971F5-0939-11D1-8BE1-00C04FD8D503}';
  162. IID_IADsNameTranslate: TGUID = '{B1B272A3-3625-11D1-A3A4-00C04FB950DC}';
  163. CLASS_NameTranslate: TGUID = '{274FAE1F-3626-11D1-A3A4-00C04FB950DC}';
  164. IID_IADsCaseIgnoreList: TGUID = '{7B66B533-4680-11D1-A3B4-00C04FB950DC}';
  165. CLASS_CaseIgnoreList: TGUID = '{15F88A55-4680-11D1-A3B4-00C04FB950DC}';
  166. IID_IADsFaxNumber: TGUID = '{A910DEA9-4680-11D1-A3B4-00C04FB950DC}';
  167. CLASS_FaxNumber: TGUID = '{A5062215-4681-11D1-A3B4-00C04FB950DC}';
  168. IID_IADsNetAddress: TGUID = '{B21A50A9-4080-11D1-A3AC-00C04FB950DC}';
  169. CLASS_NetAddress: TGUID = '{B0B71247-4080-11D1-A3AC-00C04FB950DC}';
  170. IID_IADsOctetList: TGUID = '{7B28B80F-4680-11D1-A3B4-00C04FB950DC}';
  171. CLASS_OctetList: TGUID = '{1241400F-4680-11D1-A3B4-00C04FB950DC}';
  172. IID_IADsEmail: TGUID = '{97AF011A-478E-11D1-A3B4-00C04FB950DC}';
  173. CLASS_Email: TGUID = '{8F92A857-478E-11D1-A3B4-00C04FB950DC}';
  174. IID_IADsPath: TGUID = '{B287FCD5-4080-11D1-A3AC-00C04FB950DC}';
  175. CLASS_Path: TGUID = '{B2538919-4080-11D1-A3AC-00C04FB950DC}';
  176. IID_IADsReplicaPointer: TGUID = '{F60FB803-4080-11D1-A3AC-00C04FB950DC}';
  177. CLASS_ReplicaPointer: TGUID = '{F5D1BADF-4080-11D1-A3AC-00C04FB950DC}';
  178. IID_IADsAcl: TGUID = '{8452D3AB-0869-11D1-A377-00C04FB950DC}';
  179. CLASS_Acl: TGUID = '{7AF1EFB6-0869-11D1-A377-00C04FB950DC}';
  180. IID_IADsTimestamp: TGUID = '{B2F5A901-4080-11D1-A3AC-00C04FB950DC}';
  181. CLASS_Timestamp: TGUID = '{B2BED2EB-4080-11D1-A3AC-00C04FB950DC}';
  182. IID_IADsPostalAddress: TGUID = '{7ADECF29-4680-11D1-A3B4-00C04FB950DC}';
  183. CLASS_PostalAddress: TGUID = '{0A75AFCD-4680-11D1-A3B4-00C04FB950DC}';
  184. IID_IADsBackLink: TGUID = '{FD1302BD-4080-11D1-A3AC-00C04FB950DC}';
  185. CLASS_BackLink: TGUID = '{FCBF906F-4080-11D1-A3AC-00C04FB950DC}';
  186. IID_IADsTypedName: TGUID = '{B371A349-4080-11D1-A3AC-00C04FB950DC}';
  187. CLASS_TypedName: TGUID = '{B33143CB-4080-11D1-A3AC-00C04FB950DC}';
  188. IID_IADsHold: TGUID = '{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}';
  189. CLASS_Hold: TGUID = '{B3AD3E13-4080-11D1-A3AC-00C04FB950DC}';
  190. IID_IADsObjectOptions: TGUID = '{46F14FDA-232B-11D1-A808-00C04FD8D5A8}';
  191. IID_IADsPathname: TGUID = '{D592AED4-F420-11D0-A36E-00C04FB950DC}';
  192. CLASS_Pathname: TGUID = '{080D0D78-F421-11D0-A36E-00C04FB950DC}';
  193. IID_IADsADSystemInfo: TGUID = '{5BB11929-AFD1-11D2-9CB9-0000F87A369E}';
  194. CLASS_ADSystemInfo: TGUID = '{50B6327F-AFD1-11D2-9CB9-0000F87A369E}';
  195. IID_IADsWinNTSystemInfo: TGUID = '{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}';
  196. CLASS_WinNTSystemInfo: TGUID = '{66182EC4-AFD1-11D2-9CB9-0000F87A369E}';
  197. IID_IADsDNWithBinary: TGUID = '{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}';
  198. CLASS_DNWithBinary: TGUID = '{7E99C0A3-F935-11D2-BA96-00C04FB6D0D1}';
  199. IID_IADsDNWithString: TGUID = '{370DF02E-F934-11D2-BA96-00C04FB6D0D1}';
  200. CLASS_DNWithString: TGUID = '{334857CC-F934-11D2-BA96-00C04FB6D0D1}';
  201. // *********************************************************************//
  202. // Declaration of Enumerations defined in Type Library
  203. // *********************************************************************//
  204. // Constants for enum __MIDL___MIDL_itf_ads_0000_0001
  205. type
  206. __MIDL___MIDL_itf_ads_0000_0001 = TOleEnum;
  207. const
  208. ADSTYPE_INVALID = $00000000;
  209. ADSTYPE_DN_STRING = $00000001;
  210. ADSTYPE_CASE_EXACT_STRING = $00000002;
  211. ADSTYPE_CASE_IGNORE_STRING = $00000003;
  212. ADSTYPE_PRINTABLE_STRING = $00000004;
  213. ADSTYPE_NUMERIC_STRING = $00000005;
  214. ADSTYPE_BOOLEAN = $00000006;
  215. ADSTYPE_INTEGER = $00000007;
  216. ADSTYPE_OCTET_STRING = $00000008;
  217. ADSTYPE_UTC_TIME = $00000009;
  218. ADSTYPE_LARGE_INTEGER = $0000000A;
  219. ADSTYPE_PROV_SPECIFIC = $0000000B;
  220. ADSTYPE_OBJECT_CLASS = $0000000C;
  221. ADSTYPE_CASEIGNORE_LIST = $0000000D;
  222. ADSTYPE_OCTET_LIST = $0000000E;
  223. ADSTYPE_PATH = $0000000F;
  224. ADSTYPE_POSTALADDRESS = $00000010;
  225. ADSTYPE_TIMESTAMP = $00000011;
  226. ADSTYPE_BACKLINK = $00000012;
  227. ADSTYPE_TYPEDNAME = $00000013;
  228. ADSTYPE_HOLD = $00000014;
  229. ADSTYPE_NETADDRESS = $00000015;
  230. ADSTYPE_REPLICAPOINTER = $00000016;
  231. ADSTYPE_FAXNUMBER = $00000017;
  232. ADSTYPE_EMAIL = $00000018;
  233. ADSTYPE_NT_SECURITY_DESCRIPTOR = $00000019;
  234. ADSTYPE_UNKNOWN = $0000001A;
  235. ADSTYPE_DN_WITH_BINARY = $0000001B;
  236. ADSTYPE_DN_WITH_STRING = $0000001C;
  237. // Constants for enum __MIDL___MIDL_itf_ads_0000_0018
  238. type
  239. __MIDL___MIDL_itf_ads_0000_0018 = TOleEnum;
  240. const
  241. ADS_SECURE_AUTHENTICATION = $00000001;
  242. ADS_USE_ENCRYPTION = $00000002;
  243. ADS_USE_SSL = $00000002;
  244. ADS_READONLY_SERVER = $00000004;
  245. ADS_PROMPT_CREDENTIALS = $00000008;
  246. ADS_NO_AUTHENTICATION = $00000010;
  247. ADS_FAST_BIND = $00000020;
  248. ADS_USE_SIGNING = $00000040;
  249. ADS_USE_SEALING = $00000080;
  250. ADS_USE_DELEGATION = $00000100;
  251. ADS_AUTH_RESERVED = $80000000;
  252. // Constants for enum __MIDL___MIDL_itf_ads_0000_0019
  253. type
  254. __MIDL___MIDL_itf_ads_0000_0019 = TOleEnum;
  255. const
  256. ADS_STATUS_S_OK = $00000000;
  257. ADS_STATUS_INVALID_SEARCHPREF = $00000001;
  258. ADS_STATUS_INVALID_SEARCHPREFVALUE = $00000002;
  259. // Constants for enum __MIDL___MIDL_itf_ads_0000_0020
  260. type
  261. __MIDL___MIDL_itf_ads_0000_0020 = TOleEnum;
  262. const
  263. ADS_DEREF_NEVER = $00000000;
  264. ADS_DEREF_SEARCHING = $00000001;
  265. ADS_DEREF_FINDING = $00000002;
  266. ADS_DEREF_ALWAYS = $00000003;
  267. // Constants for enum __MIDL___MIDL_itf_ads_0000_0021
  268. type
  269. __MIDL___MIDL_itf_ads_0000_0021 = TOleEnum;
  270. const
  271. ADS_SCOPE_BASE = $00000000;
  272. ADS_SCOPE_ONELEVEL = $00000001;
  273. ADS_SCOPE_SUBTREE = $00000002;
  274. // Constants for enum __MIDL___MIDL_itf_ads_0000_0022
  275. type
  276. __MIDL___MIDL_itf_ads_0000_0022 = TOleEnum;
  277. const
  278. ADSIPROP_ASYNCHRONOUS = $00000000;
  279. ADSIPROP_DEREF_ALIASES = $00000001;
  280. ADSIPROP_SIZE_LIMIT = $00000002;
  281. ADSIPROP_TIME_LIMIT = $00000003;
  282. ADSIPROP_ATTRIBTYPES_ONLY = $00000004;
  283. ADSIPROP_SEARCH_SCOPE = $00000005;
  284. ADSIPROP_TIMEOUT = $00000006;
  285. ADSIPROP_PAGESIZE = $00000007;
  286. ADSIPROP_PAGED_TIME_LIMIT = $00000008;
  287. ADSIPROP_CHASE_REFERRALS = $00000009;
  288. ADSIPROP_SORT_ON = $0000000A;
  289. ADSIPROP_CACHE_RESULTS = $0000000B;
  290. ADSIPROP_ADSIFLAG = $0000000C;
  291. // Constants for enum __MIDL___MIDL_itf_ads_0000_0023
  292. type
  293. __MIDL___MIDL_itf_ads_0000_0023 = TOleEnum;
  294. const
  295. ADSI_DIALECT_LDAP = $00000000;
  296. ADSI_DIALECT_SQL = $00000001;
  297. // Constants for enum __MIDL___MIDL_itf_ads_0000_0024
  298. type
  299. __MIDL___MIDL_itf_ads_0000_0024 = TOleEnum;
  300. const
  301. ADS_CHASE_REFERRALS_NEVER = $00000000;
  302. ADS_CHASE_REFERRALS_SUBORDINATE = $00000020;
  303. ADS_CHASE_REFERRALS_EXTERNAL = $00000040;
  304. ADS_CHASE_REFERRALS_ALWAYS = $00000060;
  305. // Constants for enum __MIDL___MIDL_itf_ads_0000_0025
  306. type
  307. __MIDL___MIDL_itf_ads_0000_0025 = TOleEnum;
  308. const
  309. ADS_SEARCHPREF_ASYNCHRONOUS = $00000000;
  310. ADS_SEARCHPREF_DEREF_ALIASES = $00000001;
  311. ADS_SEARCHPREF_SIZE_LIMIT = $00000002;
  312. ADS_SEARCHPREF_TIME_LIMIT = $00000003;
  313. ADS_SEARCHPREF_ATTRIBTYPES_ONLY = $00000004;
  314. ADS_SEARCHPREF_SEARCH_SCOPE = $00000005;
  315. ADS_SEARCHPREF_TIMEOUT = $00000006;
  316. ADS_SEARCHPREF_PAGESIZE = $00000007;
  317. ADS_SEARCHPREF_PAGED_TIME_LIMIT = $00000008;
  318. ADS_SEARCHPREF_CHASE_REFERRALS = $00000009;
  319. ADS_SEARCHPREF_SORT_ON = $0000000A;
  320. ADS_SEARCHPREF_CACHE_RESULTS = $0000000B;
  321. ADS_SEARCHPREF_DIRSYNC = $0000000C;
  322. ADS_SEARCHPREF_TOMBSTONE = $0000000D;
  323. // Constants for enum __MIDL___MIDL_itf_ads_0000_0026
  324. type
  325. __MIDL___MIDL_itf_ads_0000_0026 = TOleEnum;
  326. const
  327. ADS_PROPERTY_CLEAR = $00000001;
  328. ADS_PROPERTY_UPDATE = $00000002;
  329. ADS_PROPERTY_APPEND = $00000003;
  330. ADS_PROPERTY_DELETE = $00000004;
  331. // Constants for enum tagTYPEKIND
  332. type
  333. tagTYPEKIND = TOleEnum;
  334. const
  335. TKIND_ENUM = $00000000;
  336. TKIND_RECORD = $00000001;
  337. TKIND_MODULE = $00000002;
  338. TKIND_INTERFACE = $00000003;
  339. TKIND_DISPATCH = $00000004;
  340. TKIND_COCLASS = $00000005;
  341. TKIND_ALIAS = $00000006;
  342. TKIND_UNION = $00000007;
  343. TKIND_MAX = $00000008;
  344. // Constants for enum tagDESCKIND
  345. type
  346. tagDESCKIND = TOleEnum;
  347. const
  348. DESCKIND_NONE = $00000000;
  349. DESCKIND_FUNCDESC = $00000001;
  350. DESCKIND_VARDESC = $00000002;
  351. DESCKIND_TYPECOMP = $00000003;
  352. DESCKIND_IMPLICITAPPOBJ = $00000004;
  353. DESCKIND_MAX = $00000005;
  354. // Constants for enum tagFUNCKIND
  355. type
  356. tagFUNCKIND = TOleEnum;
  357. const
  358. FUNC_VIRTUAL = $00000000;
  359. FUNC_PUREVIRTUAL = $00000001;
  360. FUNC_NONVIRTUAL = $00000002;
  361. FUNC_STATIC = $00000003;
  362. FUNC_DISPATCH = $00000004;
  363. // Constants for enum tagINVOKEKIND
  364. type
  365. tagINVOKEKIND = TOleEnum;
  366. const
  367. INVOKE_FUNC = $00000001;
  368. INVOKE_PROPERTYGET = $00000002;
  369. INVOKE_PROPERTYPUT = $00000004;
  370. INVOKE_PROPERTYPUTREF = $00000008;
  371. // Constants for enum tagCALLCONV
  372. type
  373. tagCALLCONV = TOleEnum;
  374. const
  375. CC_FASTCALL = $00000000;
  376. CC_CDECL = $00000001;
  377. CC_MSCPASCAL = $00000002;
  378. CC_PASCAL = $00000002;
  379. CC_MACPASCAL = $00000003;
  380. CC_STDCALL = $00000004;
  381. CC_FPFASTCALL = $00000005;
  382. CC_SYSCALL = $00000006;
  383. CC_MPWCDECL = $00000007;
  384. CC_MPWPASCAL = $00000008;
  385. CC_MAX = $00000009;
  386. // Constants for enum tagVARKIND
  387. type
  388. tagVARKIND = TOleEnum;
  389. const
  390. VAR_PERINSTANCE = $00000000;
  391. VAR_STATIC = $00000001;
  392. VAR_CONST = $00000002;
  393. VAR_DISPATCH = $00000003;
  394. // Constants for enum tagSYSKIND
  395. type
  396. tagSYSKIND = TOleEnum;
  397. const
  398. SYS_WIN16 = $00000000;
  399. SYS_WIN32 = $00000001;
  400. SYS_MAC = $00000002;
  401. SYS_WIN64 = $00000001;
  402. // Constants for enum __MIDL___MIDL_itf_ads_0120_0001
  403. type
  404. __MIDL___MIDL_itf_ads_0120_0001 = TOleEnum;
  405. const
  406. ADS_SYSTEMFLAG_DISALLOW_DELETE = $80000000;
  407. ADS_SYSTEMFLAG_CONFIG_ALLOW_RENAME = $40000000;
  408. ADS_SYSTEMFLAG_CONFIG_ALLOW_MOVE = $20000000;
  409. ADS_SYSTEMFLAG_CONFIG_ALLOW_LIMITED_MOVE = $10000000;
  410. ADS_SYSTEMFLAG_DOMAIN_DISALLOW_RENAME = $08000000;
  411. ADS_SYSTEMFLAG_DOMAIN_DISALLOW_MOVE = $04000000;
  412. ADS_SYSTEMFLAG_CR_NTDS_NC = $00000001;
  413. ADS_SYSTEMFLAG_CR_NTDS_DOMAIN = $00000002;
  414. ADS_SYSTEMFLAG_ATTR_NOT_REPLICATED = $00000001;
  415. ADS_SYSTEMFLAG_ATTR_IS_CONSTRUCTED = $00000004;
  416. // Constants for enum __MIDL___MIDL_itf_ads_0126_0001
  417. type
  418. __MIDL___MIDL_itf_ads_0126_0001 = TOleEnum;
  419. const
  420. ADS_GROUP_TYPE_GLOBAL_GROUP = $00000002;
  421. ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP = $00000004;
  422. ADS_GROUP_TYPE_LOCAL_GROUP = $00000004;
  423. ADS_GROUP_TYPE_UNIVERSAL_GROUP = $00000008;
  424. ADS_GROUP_TYPE_SECURITY_ENABLED = $80000000;
  425. // Constants for enum ADS_USER_FLAG
  426. type
  427. ADS_USER_FLAG = TOleEnum;
  428. const
  429. ADS_UF_SCRIPT = $00000001;
  430. ADS_UF_ACCOUNTDISABLE = $00000002;
  431. ADS_UF_HOMEDIR_REQUIRED = $00000008;
  432. ADS_UF_LOCKOUT = $00000010;
  433. ADS_UF_PASSWD_NOTREQD = $00000020;
  434. ADS_UF_PASSWD_CANT_CHANGE = $00000040;
  435. ADS_UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED = $00000080;
  436. ADS_UF_TEMP_DUPLICATE_ACCOUNT = $00000100;
  437. ADS_UF_NORMAL_ACCOUNT = $00000200;
  438. ADS_UF_INTERDOMAIN_TRUST_ACCOUNT = $00000800;
  439. ADS_UF_WORKSTATION_TRUST_ACCOUNT = $00001000;
  440. ADS_UF_SERVER_TRUST_ACCOUNT = $00002000;
  441. ADS_UF_DONT_EXPIRE_PASSWD = $00010000;
  442. ADS_UF_MNS_LOGON_ACCOUNT = $00020000;
  443. ADS_UF_SMARTCARD_REQUIRED = $00040000;
  444. ADS_UF_TRUSTED_FOR_DELEGATION = $00080000;
  445. ADS_UF_NOT_DELEGATED = $00100000;
  446. // Constants for enum __MIDL___MIDL_itf_ads_0148_0001
  447. type
  448. __MIDL___MIDL_itf_ads_0148_0001 = TOleEnum;
  449. const
  450. ADS_RIGHT_DELETE = $00010000;
  451. ADS_RIGHT_READ_CONTROL = $00020000;
  452. ADS_RIGHT_WRITE_DAC = $00040000;
  453. ADS_RIGHT_WRITE_OWNER = $00080000;
  454. ADS_RIGHT_SYNCHRONIZE = $00100000;
  455. ADS_RIGHT_ACCESS_SYSTEM_SECURITY = $01000000;
  456. ADS_RIGHT_GENERIC_READ = $80000000;
  457. ADS_RIGHT_GENERIC_WRITE = $40000000;
  458. ADS_RIGHT_GENERIC_EXECUTE = $20000000;
  459. ADS_RIGHT_GENERIC_ALL = $10000000;
  460. ADS_RIGHT_DS_CREATE_CHILD = $00000001;
  461. ADS_RIGHT_DS_DELETE_CHILD = $00000002;
  462. ADS_RIGHT_ACTRL_DS_LIST = $00000004;
  463. ADS_RIGHT_DS_SELF = $00000008;
  464. ADS_RIGHT_DS_READ_PROP = $00000010;
  465. ADS_RIGHT_DS_WRITE_PROP = $00000020;
  466. ADS_RIGHT_DS_DELETE_TREE = $00000040;
  467. ADS_RIGHT_DS_LIST_OBJECT = $00000080;
  468. ADS_RIGHT_DS_CONTROL_ACCESS = $00000100;
  469. // Constants for enum __MIDL___MIDL_itf_ads_0148_0002
  470. type
  471. __MIDL___MIDL_itf_ads_0148_0002 = TOleEnum;
  472. const
  473. ADS_ACETYPE_ACCESS_ALLOWED = $00000000;
  474. ADS_ACETYPE_ACCESS_DENIED = $00000001;
  475. ADS_ACETYPE_SYSTEM_AUDIT = $00000002;
  476. ADS_ACETYPE_ACCESS_ALLOWED_OBJECT = $00000005;
  477. ADS_ACETYPE_ACCESS_DENIED_OBJECT = $00000006;
  478. ADS_ACETYPE_SYSTEM_AUDIT_OBJECT = $00000007;
  479. // Constants for enum __MIDL___MIDL_itf_ads_0148_0003
  480. type
  481. __MIDL___MIDL_itf_ads_0148_0003 = TOleEnum;
  482. const
  483. ADS_ACEFLAG_INHERIT_ACE = $00000002;
  484. ADS_ACEFLAG_NO_PROPAGATE_INHERIT_ACE = $00000004;
  485. ADS_ACEFLAG_INHERIT_ONLY_ACE = $00000008;
  486. ADS_ACEFLAG_INHERITED_ACE = $00000010;
  487. ADS_ACEFLAG_VALID_INHERIT_FLAGS = $0000001F;
  488. ADS_ACEFLAG_SUCCESSFUL_ACCESS = $00000040;
  489. ADS_ACEFLAG_FAILED_ACCESS = $00000080;
  490. // Constants for enum __MIDL___MIDL_itf_ads_0148_0004
  491. type
  492. __MIDL___MIDL_itf_ads_0148_0004 = TOleEnum;
  493. const
  494. ADS_FLAG_OBJECT_TYPE_PRESENT = $00000001;
  495. ADS_FLAG_INHERITED_OBJECT_TYPE_PRESENT = $00000002;
  496. // Constants for enum __MIDL___MIDL_itf_ads_0148_0005
  497. type
  498. __MIDL___MIDL_itf_ads_0148_0005 = TOleEnum;
  499. const
  500. ADS_SD_CONTROL_SE_OWNER_DEFAULTED = $00000001;
  501. ADS_SD_CONTROL_SE_GROUP_DEFAULTED = $00000002;
  502. ADS_SD_CONTROL_SE_DACL_PRESENT = $00000004;
  503. ADS_SD_CONTROL_SE_DACL_DEFAULTED = $00000008;
  504. ADS_SD_CONTROL_SE_SACL_PRESENT = $00000010;
  505. ADS_SD_CONTROL_SE_SACL_DEFAULTED = $00000020;
  506. ADS_SD_CONTROL_SE_DACL_AUTO_INHERIT_REQ = $00000100;
  507. ADS_SD_CONTROL_SE_SACL_AUTO_INHERIT_REQ = $00000200;
  508. ADS_SD_CONTROL_SE_DACL_AUTO_INHERITED = $00000400;
  509. ADS_SD_CONTROL_SE_SACL_AUTO_INHERITED = $00000800;
  510. ADS_SD_CONTROL_SE_DACL_PROTECTED = $00001000;
  511. ADS_SD_CONTROL_SE_SACL_PROTECTED = $00002000;
  512. ADS_SD_CONTROL_SE_SELF_RELATIVE = $00008000;
  513. // Constants for enum __MIDL___MIDL_itf_ads_0148_0006
  514. type
  515. __MIDL___MIDL_itf_ads_0148_0006 = TOleEnum;
  516. const
  517. ADS_SD_REVISION_DS = $00000004;
  518. // Constants for enum __MIDL___MIDL_itf_ads_0149_0001
  519. type
  520. __MIDL___MIDL_itf_ads_0149_0001 = TOleEnum;
  521. const
  522. ADS_NAME_TYPE_1779 = $00000001;
  523. ADS_NAME_TYPE_CANONICAL = $00000002;
  524. ADS_NAME_TYPE_NT4 = $00000003;
  525. ADS_NAME_TYPE_DISPLAY = $00000004;
  526. ADS_NAME_TYPE_DOMAIN_SIMPLE = $00000005;
  527. ADS_NAME_TYPE_ENTERPRISE_SIMPLE = $00000006;
  528. ADS_NAME_TYPE_GUID = $00000007;
  529. ADS_NAME_TYPE_UNKNOWN = $00000008;
  530. ADS_NAME_TYPE_USER_PRINCIPAL_NAME = $00000009;
  531. ADS_NAME_TYPE_CANONICAL_EX = $0000000A;
  532. ADS_NAME_TYPE_SERVICE_PRINCIPAL_NAME = $0000000B;
  533. ADS_NAME_TYPE_SID_OR_SID_HISTORY_NAME = $0000000C;
  534. // Constants for enum __MIDL___MIDL_itf_ads_0149_0002
  535. type
  536. __MIDL___MIDL_itf_ads_0149_0002 = TOleEnum;
  537. const
  538. ADS_NAME_INITTYPE_DOMAIN = $00000001;
  539. ADS_NAME_INITTYPE_SERVER = $00000002;
  540. ADS_NAME_INITTYPE_GC = $00000003;
  541. // Constants for enum __MIDL___MIDL_itf_ads_0163_0001
  542. type
  543. __MIDL___MIDL_itf_ads_0163_0001 = TOleEnum;
  544. const
  545. ADS_OPTION_SERVERNAME = $00000000;
  546. ADS_OPTION_REFERRALS = $00000001;
  547. ADS_OPTION_PAGE_SIZE = $00000002;
  548. ADS_OPTION_SECURITY_MASK = $00000003;
  549. ADS_OPTION_MUTUAL_AUTH_STATUS = $00000004;
  550. // Constants for enum __MIDL___MIDL_itf_ads_0163_0002
  551. type
  552. __MIDL___MIDL_itf_ads_0163_0002 = TOleEnum;
  553. const
  554. ADS_SECURITY_INFO_OWNER = $00000001;
  555. ADS_SECURITY_INFO_GROUP = $00000002;
  556. ADS_SECURITY_INFO_DACL = $00000004;
  557. ADS_SECURITY_INFO_SACL = $00000008;
  558. // Constants for enum __MIDL___MIDL_itf_ads_0164_0001
  559. type
  560. __MIDL___MIDL_itf_ads_0164_0001 = TOleEnum;
  561. const
  562. ADS_SETTYPE_FULL = $00000001;
  563. ADS_SETTYPE_PROVIDER = $00000002;
  564. ADS_SETTYPE_SERVER = $00000003;
  565. ADS_SETTYPE_DN = $00000004;
  566. // Constants for enum __MIDL___MIDL_itf_ads_0164_0002
  567. type
  568. __MIDL___MIDL_itf_ads_0164_0002 = TOleEnum;
  569. const
  570. ADS_FORMAT_WINDOWS = $00000001;
  571. ADS_FORMAT_WINDOWS_NO_SERVER = $00000002;
  572. ADS_FORMAT_WINDOWS_DN = $00000003;
  573. ADS_FORMAT_WINDOWS_PARENT = $00000004;
  574. ADS_FORMAT_X500 = $00000005;
  575. ADS_FORMAT_X500_NO_SERVER = $00000006;
  576. ADS_FORMAT_X500_DN = $00000007;
  577. ADS_FORMAT_X500_PARENT = $00000008;
  578. ADS_FORMAT_SERVER = $00000009;
  579. ADS_FORMAT_PROVIDER = $0000000A;
  580. ADS_FORMAT_LEAF = $0000000B;
  581. // Constants for enum __MIDL___MIDL_itf_ads_0164_0003
  582. type
  583. __MIDL___MIDL_itf_ads_0164_0003 = TOleEnum;
  584. const
  585. ADS_DISPLAY_FULL = $00000001;
  586. ADS_DISPLAY_VALUE_ONLY = $00000002;
  587. // Constants for enum __MIDL___MIDL_itf_ads_0164_0004
  588. type
  589. __MIDL___MIDL_itf_ads_0164_0004 = TOleEnum;
  590. const
  591. ADS_ESCAPEDMODE_DEFAULT = $00000001;
  592. ADS_ESCAPEDMODE_ON = $00000002;
  593. ADS_ESCAPEDMODE_OFF = $00000003;
  594. ADS_ESCAPEDMODE_OFF_EX = $00000004;
  595. type
  596. // *********************************************************************//
  597. // Forward declaration of types defined in TypeLibrary
  598. // *********************************************************************//
  599. IADs = interface;
  600. {$ifdef SUPPORTS_DISPINTERFACE}
  601. IADsDisp = dispinterface;
  602. {$endif}
  603. IADsContainer = interface;
  604. {$ifdef SUPPORTS_DISPINTERFACE}
  605. IADsContainerDisp = dispinterface;
  606. {$endif}
  607. IADsCollection = interface;
  608. {$ifdef SUPPORTS_DISPINTERFACE}
  609. IADsCollectionDisp = dispinterface;
  610. {$endif}
  611. IADsMembers = interface;
  612. {$ifdef SUPPORTS_DISPINTERFACE}
  613. IADsMembersDisp = dispinterface;
  614. {$endif}
  615. IADsPropertyList = interface;
  616. {$ifdef SUPPORTS_DISPINTERFACE}
  617. IADsPropertyListDisp = dispinterface;
  618. {$endif}
  619. IADsPropertyEntry = interface;
  620. {$ifdef SUPPORTS_DISPINTERFACE}
  621. IADsPropertyEntryDisp = dispinterface;
  622. {$endif}
  623. IADsPropertyValue = interface;
  624. {$ifdef SUPPORTS_DISPINTERFACE}
  625. IADsPropertyValueDisp = dispinterface;
  626. {$endif}
  627. IADsPropertyValue2 = interface;
  628. {$ifdef SUPPORTS_DISPINTERFACE}
  629. IADsPropertyValue2Disp = dispinterface;
  630. {$endif}
  631. IPrivateDispatch = interface;
  632. ITypeInfo = interface;
  633. ITypeComp = interface;
  634. ITypeLib = interface;
  635. IPrivateUnknown = interface;
  636. IADsExtension = interface;
  637. IADsDeleteOps = interface;
  638. {$ifdef SUPPORTS_DISPINTERFACE}
  639. IADsDeleteOpsDisp = dispinterface;
  640. {$endif}
  641. IADsNamespaces = interface;
  642. {$ifdef SUPPORTS_DISPINTERFACE}
  643. IADsNamespacesDisp = dispinterface;
  644. {$endif}
  645. IADsClass = interface;
  646. {$ifdef SUPPORTS_DISPINTERFACE}
  647. IADsClassDisp = dispinterface;
  648. {$endif}
  649. IADsProperty = interface;
  650. {$ifdef SUPPORTS_DISPINTERFACE}
  651. IADsPropertyDisp = dispinterface;
  652. {$endif}
  653. IADsSyntax = interface;
  654. {$ifdef SUPPORTS_DISPINTERFACE}
  655. IADsSyntaxDisp = dispinterface;
  656. {$endif}
  657. IADsLocality = interface;
  658. {$ifdef SUPPORTS_DISPINTERFACE}
  659. IADsLocalityDisp = dispinterface;
  660. {$endif}
  661. IADsO = interface;
  662. {$ifdef SUPPORTS_DISPINTERFACE}
  663. IADsODisp = dispinterface;
  664. {$endif}
  665. IADsOU = interface;
  666. {$ifdef SUPPORTS_DISPINTERFACE}
  667. IADsOUDisp = dispinterface;
  668. {$endif}
  669. IADsDomain = interface;
  670. {$ifdef SUPPORTS_DISPINTERFACE}
  671. IADsDomainDisp = dispinterface;
  672. {$endif}
  673. IADsComputer = interface;
  674. {$ifdef SUPPORTS_DISPINTERFACE}
  675. IADsComputerDisp = dispinterface;
  676. {$endif}
  677. IADsComputerOperations = interface;
  678. {$ifdef SUPPORTS_DISPINTERFACE}
  679. IADsComputerOperationsDisp = dispinterface;
  680. {$endif}
  681. IADsGroup = interface;
  682. {$ifdef SUPPORTS_DISPINTERFACE}
  683. IADsGroupDisp = dispinterface;
  684. {$endif}
  685. IADsUser = interface;
  686. {$ifdef SUPPORTS_DISPINTERFACE}
  687. IADsUserDisp = dispinterface;
  688. {$endif}
  689. IADsPrintQueue = interface;
  690. {$ifdef SUPPORTS_DISPINTERFACE}
  691. IADsPrintQueueDisp = dispinterface;
  692. {$endif}
  693. IADsPrintQueueOperations = interface;
  694. {$ifdef SUPPORTS_DISPINTERFACE}
  695. IADsPrintQueueOperationsDisp = dispinterface;
  696. {$endif}
  697. IADsPrintJob = interface;
  698. {$ifdef SUPPORTS_DISPINTERFACE}
  699. IADsPrintJobDisp = dispinterface;
  700. {$endif}
  701. IADsPrintJobOperations = interface;
  702. {$ifdef SUPPORTS_DISPINTERFACE}
  703. IADsPrintJobOperationsDisp = dispinterface;
  704. {$endif}
  705. IADsService = interface;
  706. {$ifdef SUPPORTS_DISPINTERFACE}
  707. IADsServiceDisp = dispinterface;
  708. {$endif}
  709. IADsServiceOperations = interface;
  710. {$ifdef SUPPORTS_DISPINTERFACE}
  711. IADsServiceOperationsDisp = dispinterface;
  712. {$endif}
  713. IADsFileService = interface;
  714. {$ifdef SUPPORTS_DISPINTERFACE}
  715. IADsFileServiceDisp = dispinterface;
  716. {$endif}
  717. IADsFileServiceOperations = interface;
  718. {$ifdef SUPPORTS_DISPINTERFACE}
  719. IADsFileServiceOperationsDisp = dispinterface;
  720. {$endif}
  721. IADsFileShare = interface;
  722. {$ifdef SUPPORTS_DISPINTERFACE}
  723. IADsFileShareDisp = dispinterface;
  724. {$endif}
  725. IADsSession = interface;
  726. {$ifdef SUPPORTS_DISPINTERFACE}
  727. IADsSessionDisp = dispinterface;
  728. {$endif}
  729. IADsResource = interface;
  730. {$ifdef SUPPORTS_DISPINTERFACE}
  731. IADsResourceDisp = dispinterface;
  732. {$endif}
  733. IADsOpenDSObject = interface;
  734. {$ifdef SUPPORTS_DISPINTERFACE}
  735. IADsOpenDSObjectDisp = dispinterface;
  736. {$endif}
  737. IDirectoryObject = interface;
  738. IDirectorySearch = interface;
  739. IDirectorySchemaMgmt = interface;
  740. IADsAggregatee = interface;
  741. IADsAggregator = interface;
  742. IADsAccessControlEntry = interface;
  743. {$ifdef SUPPORTS_DISPINTERFACE}
  744. IADsAccessControlEntryDisp = dispinterface;
  745. {$endif}
  746. IADsAccessControlList = interface;
  747. {$ifdef SUPPORTS_DISPINTERFACE}
  748. IADsAccessControlListDisp = dispinterface;
  749. {$endif}
  750. IADsSecurityDescriptor = interface;
  751. {$ifdef SUPPORTS_DISPINTERFACE}
  752. IADsSecurityDescriptorDisp = dispinterface;
  753. {$endif}
  754. IADsLargeInteger = interface;
  755. {$ifdef SUPPORTS_DISPINTERFACE}
  756. IADsLargeIntegerDisp = dispinterface;
  757. {$endif}
  758. IADsNameTranslate = interface;
  759. {$ifdef SUPPORTS_DISPINTERFACE}
  760. IADsNameTranslateDisp = dispinterface;
  761. {$endif}
  762. IADsCaseIgnoreList = interface;
  763. {$ifdef SUPPORTS_DISPINTERFACE}
  764. IADsCaseIgnoreListDisp = dispinterface;
  765. {$endif}
  766. IADsFaxNumber = interface;
  767. {$ifdef SUPPORTS_DISPINTERFACE}
  768. IADsFaxNumberDisp = dispinterface;
  769. {$endif}
  770. IADsNetAddress = interface;
  771. {$ifdef SUPPORTS_DISPINTERFACE}
  772. IADsNetAddressDisp = dispinterface;
  773. {$endif}
  774. IADsOctetList = interface;
  775. {$ifdef SUPPORTS_DISPINTERFACE}
  776. IADsOctetListDisp = dispinterface;
  777. {$endif}
  778. IADsEmail = interface;
  779. {$ifdef SUPPORTS_DISPINTERFACE}
  780. IADsEmailDisp = dispinterface;
  781. {$endif}
  782. IADsPath = interface;
  783. {$ifdef SUPPORTS_DISPINTERFACE}
  784. IADsPathDisp = dispinterface;
  785. {$endif}
  786. IADsReplicaPointer = interface;
  787. {$ifdef SUPPORTS_DISPINTERFACE}
  788. IADsReplicaPointerDisp = dispinterface;
  789. {$endif}
  790. IADsAcl = interface;
  791. {$ifdef SUPPORTS_DISPINTERFACE}
  792. IADsAclDisp = dispinterface;
  793. {$endif}
  794. IADsTimestamp = interface;
  795. {$ifdef SUPPORTS_DISPINTERFACE}
  796. IADsTimestampDisp = dispinterface;
  797. {$endif}
  798. IADsPostalAddress = interface;
  799. {$ifdef SUPPORTS_DISPINTERFACE}
  800. IADsPostalAddressDisp = dispinterface;
  801. {$endif}
  802. IADsBackLink = interface;
  803. {$ifdef SUPPORTS_DISPINTERFACE}
  804. IADsBackLinkDisp = dispinterface;
  805. {$endif}
  806. IADsTypedName = interface;
  807. {$ifdef SUPPORTS_DISPINTERFACE}
  808. IADsTypedNameDisp = dispinterface;
  809. {$endif}
  810. IADsHold = interface;
  811. {$ifdef SUPPORTS_DISPINTERFACE}
  812. IADsHoldDisp = dispinterface;
  813. {$endif}
  814. IADsObjectOptions = interface;
  815. {$ifdef SUPPORTS_DISPINTERFACE}
  816. IADsObjectOptionsDisp = dispinterface;
  817. {$endif}
  818. IADsPathname = interface;
  819. {$ifdef SUPPORTS_DISPINTERFACE}
  820. IADsPathnameDisp = dispinterface;
  821. {$endif}
  822. IADsADSystemInfo = interface;
  823. {$ifdef SUPPORTS_DISPINTERFACE}
  824. IADsADSystemInfoDisp = dispinterface;
  825. {$endif}
  826. IADsWinNTSystemInfo = interface;
  827. {$ifdef SUPPORTS_DISPINTERFACE}
  828. IADsWinNTSystemInfoDisp = dispinterface;
  829. {$endif}
  830. IADsDNWithBinary = interface;
  831. {$ifdef SUPPORTS_DISPINTERFACE}
  832. IADsDNWithBinaryDisp = dispinterface;
  833. {$endif}
  834. IADsDNWithString = interface;
  835. {$ifdef SUPPORTS_DISPINTERFACE}
  836. IADsDNWithStringDisp = dispinterface;
  837. {$endif}
  838. // *********************************************************************//
  839. // Declaration of CoClasses defined in Type Library
  840. // (NOTE: Here we map each CoClass to its Default Interface)
  841. // *********************************************************************//
  842. PropertyEntry = IADsPropertyEntry;
  843. PropertyValue = IADsPropertyValue;
  844. AccessControlEntry = IADsAccessControlEntry;
  845. AccessControlList = IADsAccessControlList;
  846. SecurityDescriptor = IADsSecurityDescriptor;
  847. LargeInteger = IADsLargeInteger;
  848. NameTranslate = IADsNameTranslate;
  849. CaseIgnoreList = IADsCaseIgnoreList;
  850. FaxNumber = IADsFaxNumber;
  851. NetAddress = IADsNetAddress;
  852. OctetList = IADsOctetList;
  853. Email = IADsEmail;
  854. Path = IADsPath;
  855. ReplicaPointer = IADsReplicaPointer;
  856. Acl = IADsAcl;
  857. Timestamp = IADsTimestamp;
  858. PostalAddress = IADsPostalAddress;
  859. BackLink = IADsBackLink;
  860. TypedName = IADsTypedName;
  861. Hold = IADsHold;
  862. Pathname = IADsPathname;
  863. ADSystemInfo = IADsADSystemInfo;
  864. WinNTSystemInfo = IADsWinNTSystemInfo;
  865. DNWithBinary = IADsDNWithBinary;
  866. DNWithString = IADsDNWithString;
  867. // *********************************************************************//
  868. // Declaration of structures, unions and aliases.
  869. // *********************************************************************//
  870. PUserType1 = ^_ADS_CASEIGNORE_LIST; {*}
  871. PUserType2 = ^_ADS_OCTET_LIST; {*}
  872. PPWideChar1 = ^PWideChar; {*}
  873. PUserType8 = ^tagTYPEDESC; {*}
  874. PUserType9 = ^tagARRAYDESC; {*}
  875. PUserType3 = ^TGUID; {*}
  876. PWord1 = ^Word; {*}
  877. PPWord1 = ^PWord1; {*}
  878. PUserType4 = ^TGUID; {*}
  879. PUserType5 = ^tagTYPEATTR; {*}
  880. PUserType6 = ^tagFUNCDESC; {*}
  881. PUserType7 = ^tagVARDESC; {*}
  882. PUserType10 = ^tagTLIBATTR; {*}
  883. PUserType11 = ^_ads_object_info; {*}
  884. PUserType12 = ^_ads_attr_info; {*}
  885. PUserType13 = ^ads_searchpref_info; {*}
  886. PUserType14 = ^ads_search_column; {*}
  887. PUserType15 = ^_ads_attr_def; {*}
  888. PPUserType1 = ^PUserType15; {*}
  889. PUINT1 = ^LongWord; {*}
  890. PUserType16 = ^_ads_class_def; {*}
  891. PPUserType2 = ^PUserType16; {*}
  892. ADSTYPEENUM = __MIDL___MIDL_itf_ads_0000_0001;
  893. __MIDL___MIDL_itf_ads_0000_0002 = packed record
  894. dwLength: LongWord;
  895. lpValue: ^Byte;
  896. end;
  897. ADS_OCTET_STRING = __MIDL___MIDL_itf_ads_0000_0002;
  898. __MIDL___MIDL_itf_ads_0000_0003 = packed record
  899. dwLength: LongWord;
  900. lpValue: ^Byte;
  901. end;
  902. ADS_NT_SECURITY_DESCRIPTOR = __MIDL___MIDL_itf_ads_0000_0003;
  903. _SYSTEMTIME = packed record
  904. wYear: Word;
  905. wMonth: Word;
  906. wDayOfWeek: Word;
  907. wDay: Word;
  908. wHour: Word;
  909. wMinute: Word;
  910. wSecond: Word;
  911. wMilliseconds: Word;
  912. end;
  913. _LARGE_INTEGER = packed record
  914. QuadPart: Int64;
  915. end;
  916. __MIDL___MIDL_itf_ads_0000_0004 = packed record
  917. dwLength: LongWord;
  918. lpValue: ^Byte;
  919. end;
  920. ADS_PROV_SPECIFIC = __MIDL___MIDL_itf_ads_0000_0004;
  921. __MIDL___MIDL_itf_ads_0000_0005 = packed record
  922. Type_: LongWord;
  923. VolumeName: PWideChar;
  924. Path: PWideChar;
  925. end;
  926. ADS_PATH = __MIDL___MIDL_itf_ads_0000_0005;
  927. __MIDL___MIDL_itf_ads_0000_0006 = packed record
  928. PostalAddress: array[0..5] of PWideChar;
  929. end;
  930. ADS_POSTALADDRESS = __MIDL___MIDL_itf_ads_0000_0006;
  931. __MIDL___MIDL_itf_ads_0000_0007 = packed record
  932. WholeSeconds: LongWord;
  933. EventID: LongWord;
  934. end;
  935. ADS_TIMESTAMP = __MIDL___MIDL_itf_ads_0000_0007;
  936. __MIDL___MIDL_itf_ads_0000_0008 = packed record
  937. RemoteID: LongWord;
  938. ObjectName: PWideChar;
  939. end;
  940. ADS_BACKLINK = __MIDL___MIDL_itf_ads_0000_0008;
  941. __MIDL___MIDL_itf_ads_0000_0009 = packed record
  942. ObjectName: PWideChar;
  943. Level: LongWord;
  944. Interval: LongWord;
  945. end;
  946. ADS_TYPEDNAME = __MIDL___MIDL_itf_ads_0000_0009;
  947. __MIDL___MIDL_itf_ads_0000_0010 = packed record
  948. ObjectName: PWideChar;
  949. Amount: LongWord;
  950. end;
  951. ADS_HOLD = __MIDL___MIDL_itf_ads_0000_0010;
  952. __MIDL___MIDL_itf_ads_0000_0011 = packed record
  953. AddressType: LongWord;
  954. AddressLength: LongWord;
  955. Address: ^Byte;
  956. end;
  957. ADS_NETADDRESS = __MIDL___MIDL_itf_ads_0000_0011;
  958. __MIDL___MIDL_itf_ads_0000_0012 = packed record
  959. ServerName: PWideChar;
  960. ReplicaType: LongWord;
  961. ReplicaNumber: LongWord;
  962. Count: LongWord;
  963. ReplicaAddressHints: ^__MIDL___MIDL_itf_ads_0000_0011;
  964. end;
  965. ADS_REPLICAPOINTER = __MIDL___MIDL_itf_ads_0000_0012;
  966. __MIDL___MIDL_itf_ads_0000_0013 = packed record
  967. TelephoneNumber: PWideChar;
  968. NumberOfBits: LongWord;
  969. Parameters: ^Byte;
  970. end;
  971. ADS_FAXNUMBER = __MIDL___MIDL_itf_ads_0000_0013;
  972. __MIDL___MIDL_itf_ads_0000_0014 = packed record
  973. Address: PWideChar;
  974. Type_: LongWord;
  975. end;
  976. ADS_EMAIL = __MIDL___MIDL_itf_ads_0000_0014;
  977. __MIDL___MIDL_itf_ads_0000_0015 = packed record
  978. dwLength: LongWord;
  979. lpBinaryValue: ^Byte;
  980. pszDNString: PWideChar;
  981. end;
  982. ADS_DN_WITH_BINARY = __MIDL___MIDL_itf_ads_0000_0015;
  983. __MIDL___MIDL_itf_ads_0000_0016 = packed record
  984. pszStringValue: PWideChar;
  985. pszDNString: PWideChar;
  986. end;
  987. ADS_DN_WITH_STRING = __MIDL___MIDL_itf_ads_0000_0016;
  988. _ADS_CASEIGNORE_LIST = packed record
  989. Next: PUserType1;
  990. String_: PWideChar;
  991. end;
  992. _ADS_OCTET_LIST = packed record
  993. Next: PUserType2;
  994. Length: LongWord;
  995. Data: ^Byte;
  996. end;
  997. __MIDL___MIDL_itf_ads_0000_0017 = record
  998. case Integer of
  999. 0: (DNString: PWideChar);
  1000. 1: (CaseExactString: PWideChar);
  1001. 2: (CaseIgnoreString: PWideChar);
  1002. 3: (PrintableString: PWideChar);
  1003. 4: (NumericString: PWideChar);
  1004. 5: (Boolean: LongWord);
  1005. 6: (Integer: LongWord);
  1006. 7: (OctetString: ADS_OCTET_STRING);
  1007. 8: (UTCTime: _SYSTEMTIME);
  1008. 9: (LargeInteger: _LARGE_INTEGER);
  1009. 10: (ClassName: PWideChar);
  1010. 11: (ProviderSpecific: ADS_PROV_SPECIFIC);
  1011. 12: (pCaseIgnoreList: ^_ADS_CASEIGNORE_LIST);
  1012. 13: (pOctetList: ^_ADS_OCTET_LIST);
  1013. 14: (pPath: ^__MIDL___MIDL_itf_ads_0000_0005);
  1014. 15: (pPostalAddress: ^__MIDL___MIDL_itf_ads_0000_0006);
  1015. 16: (Timestamp: ADS_TIMESTAMP);
  1016. 17: (BackLink: ADS_BACKLINK);
  1017. 18: (pTypedName: ^__MIDL___MIDL_itf_ads_0000_0009);
  1018. 19: (Hold: ADS_HOLD);
  1019. 20: (pNetAddress: ^__MIDL___MIDL_itf_ads_0000_0011);
  1020. 21: (pReplicaPointer: ^__MIDL___MIDL_itf_ads_0000_0012);
  1021. 22: (pFaxNumber: ^__MIDL___MIDL_itf_ads_0000_0013);
  1022. 23: (Email: ADS_EMAIL);
  1023. 24: (SecurityDescriptor: ADS_NT_SECURITY_DESCRIPTOR);
  1024. 25: (pDNWithBinary: ^__MIDL___MIDL_itf_ads_0000_0015);
  1025. 26: (pDNWithString: ^__MIDL___MIDL_itf_ads_0000_0016);
  1026. end;
  1027. ADS_AUTHENTICATION_ENUM = __MIDL___MIDL_itf_ads_0000_0018;
  1028. _ads_object_info = packed record
  1029. pszRDN: PWideChar;
  1030. pszObjectDN: PWideChar;
  1031. pszParentDN: PWideChar;
  1032. pszSchemaDN: PWideChar;
  1033. pszClassName: PWideChar;
  1034. end;
  1035. ADS_STATUSENUM = __MIDL___MIDL_itf_ads_0000_0019;
  1036. ADS_DEREFENUM = __MIDL___MIDL_itf_ads_0000_0020;
  1037. ADS_SCOPEENUM = __MIDL___MIDL_itf_ads_0000_0021;
  1038. ADS_PREFERENCES_ENUM = __MIDL___MIDL_itf_ads_0000_0022;
  1039. ADSI_DIALECT_ENUM = __MIDL___MIDL_itf_ads_0000_0023;
  1040. ADS_CHASE_REFERRALS_ENUM = __MIDL___MIDL_itf_ads_0000_0024;
  1041. ADS_SEARCHPREF_ENUM = __MIDL___MIDL_itf_ads_0000_0025;
  1042. _adsvalue = packed record
  1043. dwType: ADSTYPEENUM;
  1044. __MIDL_0010: __MIDL___MIDL_itf_ads_0000_0017;
  1045. end;
  1046. ads_search_column = packed record
  1047. pszAttrName: PWideChar;
  1048. dwADsType: ADSTYPEENUM;
  1049. pADsValues: ^_adsvalue;
  1050. dwNumValues: LongWord;
  1051. hReserved: Pointer;
  1052. end;
  1053. _ads_attr_def = packed record
  1054. pszAttrName: PWideChar;
  1055. dwADsType: ADSTYPEENUM;
  1056. dwMinRange: LongWord;
  1057. dwMaxRange: LongWord;
  1058. fMultiValued: Integer;
  1059. end;
  1060. _ads_sortkey = packed record
  1061. pszAttrType: PWideChar;
  1062. pszReserved: PWideChar;
  1063. fReverseorder: Shortint;
  1064. end;
  1065. ADS_PROPERTY_OPERATION_ENUM = __MIDL___MIDL_itf_ads_0000_0026;
  1066. __MIDL_IOleAutomationTypes_0005 = record
  1067. case Integer of
  1068. 0: (lptdesc: PUserType8);
  1069. 1: (lpadesc: PUserType9);
  1070. 2: (hreftype: LongWord);
  1071. end;
  1072. tagTYPEDESC = packed record
  1073. __MIDL_0008: __MIDL_IOleAutomationTypes_0005;
  1074. vt: Word;
  1075. end;
  1076. tagSAFEARRAYBOUND = packed record
  1077. cElements: LongWord;
  1078. lLbound: Integer;
  1079. end;
  1080. ULONG_PTR = LongWord;
  1081. tagIDLDESC = packed record
  1082. dwReserved: ULONG_PTR;
  1083. wIDLFlags: Word;
  1084. end;
  1085. DWORD = LongWord;
  1086. tagPARAMDESCEX = packed record
  1087. cBytes: LongWord;
  1088. varDefaultValue: OleVariant;
  1089. end;
  1090. tagPARAMDESC = packed record
  1091. pparamdescex: ^tagPARAMDESCEX;
  1092. wParamFlags: Word;
  1093. end;
  1094. tagELEMDESC = packed record
  1095. tdesc: tagTYPEDESC;
  1096. paramdesc: tagPARAMDESC;
  1097. end;
  1098. tagFUNCDESC = packed record
  1099. memid: Integer;
  1100. lprgscode: ^SCODE;
  1101. lprgelemdescParam: ^tagELEMDESC;
  1102. funckind: tagFUNCKIND;
  1103. invkind: tagINVOKEKIND;
  1104. callconv: tagCALLCONV;
  1105. cParams: Smallint;
  1106. cParamsOpt: Smallint;
  1107. oVft: Smallint;
  1108. cScodes: Smallint;
  1109. elemdescFunc: tagELEMDESC;
  1110. wFuncFlags: Word;
  1111. end;
  1112. __MIDL_IOleAutomationTypes_0006 = record
  1113. case Integer of
  1114. 0: (oInst: LongWord);
  1115. 1: (lpvarValue: ^OleVariant);
  1116. end;
  1117. tagVARDESC = packed record
  1118. memid: Integer;
  1119. lpstrSchema: PWideChar;
  1120. __MIDL_0009: __MIDL_IOleAutomationTypes_0006;
  1121. elemdescVar: tagELEMDESC;
  1122. wVarFlags: Word;
  1123. varkind: tagVARKIND;
  1124. end;
  1125. tagTLIBATTR = packed record
  1126. GUID: TGUID;
  1127. lcid: LongWord;
  1128. syskind: tagSYSKIND;
  1129. wMajorVerNum: Word;
  1130. wMinorVerNum: Word;
  1131. wLibFlags: Word;
  1132. end;
  1133. ADS_SYSTEMFLAG_ENUM = __MIDL___MIDL_itf_ads_0120_0001;
  1134. ADS_GROUP_TYPE_ENUM = __MIDL___MIDL_itf_ads_0126_0001;
  1135. ADS_RIGHTS_ENUM = __MIDL___MIDL_itf_ads_0148_0001;
  1136. ADS_ACETYPE_ENUM = __MIDL___MIDL_itf_ads_0148_0002;
  1137. ADS_ACEFLAG_ENUM = __MIDL___MIDL_itf_ads_0148_0003;
  1138. ADS_FLAGTYPE_ENUM = __MIDL___MIDL_itf_ads_0148_0004;
  1139. ADS_SD_CONTROL_ENUM = __MIDL___MIDL_itf_ads_0148_0005;
  1140. ADS_SD_REVISION_ENUM = __MIDL___MIDL_itf_ads_0148_0006;
  1141. ADS_NAME_TYPE_ENUM = __MIDL___MIDL_itf_ads_0149_0001;
  1142. ADS_NAME_INITTYPE_ENUM = __MIDL___MIDL_itf_ads_0149_0002;
  1143. ADS_OPTION_ENUM = __MIDL___MIDL_itf_ads_0163_0001;
  1144. ADS_SECURITY_INFO_ENUM = __MIDL___MIDL_itf_ads_0163_0002;
  1145. ADS_SETTYPE_ENUM = __MIDL___MIDL_itf_ads_0164_0001;
  1146. ADS_FORMAT_ENUM = __MIDL___MIDL_itf_ads_0164_0002;
  1147. ADS_DISPLAY_ENUM = __MIDL___MIDL_itf_ads_0164_0003;
  1148. ADS_ESCAPE_MODE_ENUM = __MIDL___MIDL_itf_ads_0164_0004;
  1149. _ads_attr_info = packed record
  1150. pszAttrName: PWideChar;
  1151. dwControlCode: LongWord;
  1152. dwADsType: ADSTYPEENUM;
  1153. pADsValues: ^_adsvalue;
  1154. dwNumValues: LongWord;
  1155. end;
  1156. ads_searchpref_info = packed record
  1157. dwSearchPref: ADS_SEARCHPREF_ENUM;
  1158. vValue: _adsvalue;
  1159. dwStatus: ADS_STATUSENUM;
  1160. end;
  1161. _ads_class_def = packed record
  1162. pszClassName: PWideChar;
  1163. dwMandatoryAttrs: LongWord;
  1164. ppszMandatoryAttrs: ^PWideChar;
  1165. optionalAttrs: LongWord;
  1166. ppszOptionalAttrs: ^PPWideChar1;
  1167. dwNamingAttrs: LongWord;
  1168. ppszNamingAttrs: ^PPWideChar1;
  1169. dwSuperClasses: LongWord;
  1170. ppszSuperClasses: ^PPWideChar1;
  1171. fIsContainer: Integer;
  1172. end;
  1173. tagTYPEATTR = packed record
  1174. GUID: TGUID;
  1175. lcid: LongWord;
  1176. dwReserved: LongWord;
  1177. memidConstructor: Integer;
  1178. memidDestructor: Integer;
  1179. lpstrSchema: PWideChar;
  1180. cbSizeInstance: LongWord;
  1181. typekind: tagTYPEKIND;
  1182. cFuncs: Word;
  1183. cVars: Word;
  1184. cImplTypes: Word;
  1185. cbSizeVft: Word;
  1186. cbAlignment: Word;
  1187. wTypeFlags: Word;
  1188. wMajorVerNum: Word;
  1189. wMinorVerNum: Word;
  1190. tdescAlias: tagTYPEDESC;
  1191. idldescType: tagIDLDESC;
  1192. end;
  1193. tagARRAYDESC = packed record
  1194. tdescElem: tagTYPEDESC;
  1195. cDims: Word;
  1196. rgbounds: ^tagSAFEARRAYBOUND;
  1197. end;
  1198. // *********************************************************************//
  1199. // Interface: IADs
  1200. // Flags: (4416) Dual OleAutomation Dispatchable
  1201. // GUID: {FD8256D0-FD15-11CE-ABC4-02608C9E7553}
  1202. // *********************************************************************//
  1203. IADs = interface(IDispatch)
  1204. ['{FD8256D0-FD15-11CE-ABC4-02608C9E7553}']
  1205. function Get_Name: WideString; safecall;
  1206. function Get_Class_: WideString; safecall;
  1207. function Get_GUID: WideString; safecall;
  1208. function Get_ADsPath: WideString; safecall;
  1209. function Get_Parent: WideString; safecall;
  1210. function Get_Schema: WideString; safecall;
  1211. procedure GetInfo; safecall;
  1212. procedure SetInfo; safecall;
  1213. function Get(const bstrName: WideString): OleVariant; safecall;
  1214. procedure Put(const bstrName: WideString; vProp: OleVariant); safecall;
  1215. function GetEx(const bstrName: WideString): OleVariant; safecall;
  1216. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); safecall;
  1217. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); safecall;
  1218. property Name: WideString read Get_Name;
  1219. property Class_: WideString read Get_Class_;
  1220. property GUID: WideString read Get_GUID;
  1221. property ADsPath: WideString read Get_ADsPath;
  1222. property Parent: WideString read Get_Parent;
  1223. property Schema: WideString read Get_Schema;
  1224. end;
  1225. // *********************************************************************//
  1226. // DispIntf: IADsDisp
  1227. // Flags: (4416) Dual OleAutomation Dispatchable
  1228. // GUID: {FD8256D0-FD15-11CE-ABC4-02608C9E7553}
  1229. // *********************************************************************//
  1230. {$ifdef SUPPORTS_DISPINTERFACE}
  1231. IADsDisp = dispinterface
  1232. ['{FD8256D0-FD15-11CE-ABC4-02608C9E7553}']
  1233. property Name: WideString readonly dispid 2;
  1234. property Class_: WideString readonly dispid 3;
  1235. property GUID: WideString readonly dispid 4;
  1236. property ADsPath: WideString readonly dispid 5;
  1237. property Parent: WideString readonly dispid 6;
  1238. property Schema: WideString readonly dispid 7;
  1239. procedure GetInfo; dispid 8;
  1240. procedure SetInfo; dispid 9;
  1241. function Get(const bstrName: WideString): OleVariant; dispid 10;
  1242. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  1243. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  1244. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  1245. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  1246. end;
  1247. {$endif}
  1248. // *********************************************************************//
  1249. // Interface: IADsContainer
  1250. // Flags: (4416) Dual OleAutomation Dispatchable
  1251. // GUID: {001677D0-FD16-11CE-ABC4-02608C9E7553}
  1252. // *********************************************************************//
  1253. IADsContainer = interface(IDispatch)
  1254. ['{001677D0-FD16-11CE-ABC4-02608C9E7553}']
  1255. function Get_Count: Integer; safecall;
  1256. function Get__NewEnum: IUnknown; safecall;
  1257. function Get_Filter: OleVariant; safecall;
  1258. procedure Set_Filter(pVar: OleVariant); safecall;
  1259. function Get_Hints: OleVariant; safecall;
  1260. procedure Set_Hints(pvFilter: OleVariant); safecall;
  1261. function GetObject(const ClassName: WideString; const RelativeName: WideString): IDispatch; safecall;
  1262. function Create(const ClassName: WideString; const RelativeName: WideString): IDispatch; safecall;
  1263. procedure Delete(const bstrClassName: WideString; const bstrRelativeName: WideString); safecall;
  1264. function CopyHere(const SourceName: WideString; const NewName: WideString): IDispatch; safecall;
  1265. function MoveHere(const SourceName: WideString; const NewName: WideString): IDispatch; safecall;
  1266. property Count: Integer read Get_Count;
  1267. property _NewEnum: IUnknown read Get__NewEnum;
  1268. property Filter: OleVariant read Get_Filter write Set_Filter;
  1269. property Hints: OleVariant read Get_Hints write Set_Hints;
  1270. end;
  1271. // *********************************************************************//
  1272. // DispIntf: IADsContainerDisp
  1273. // Flags: (4416) Dual OleAutomation Dispatchable
  1274. // GUID: {001677D0-FD16-11CE-ABC4-02608C9E7553}
  1275. // *********************************************************************//
  1276. {$ifdef SUPPORTS_DISPINTERFACE}
  1277. IADsContainerDisp = dispinterface
  1278. ['{001677D0-FD16-11CE-ABC4-02608C9E7553}']
  1279. property Count: Integer readonly dispid 2;
  1280. property _NewEnum: IUnknown readonly dispid -4;
  1281. property Filter: OleVariant dispid 3;
  1282. property Hints: OleVariant dispid 4;
  1283. function GetObject(const ClassName: WideString; const RelativeName: WideString): IDispatch; dispid 5;
  1284. function Create(const ClassName: WideString; const RelativeName: WideString): IDispatch; dispid 6;
  1285. procedure Delete(const bstrClassName: WideString; const bstrRelativeName: WideString); dispid 7;
  1286. function CopyHere(const SourceName: WideString; const NewName: WideString): IDispatch; dispid 8;
  1287. function MoveHere(const SourceName: WideString; const NewName: WideString): IDispatch; dispid 9;
  1288. end;
  1289. {$endif}
  1290. // *********************************************************************//
  1291. // Interface: IADsCollection
  1292. // Flags: (4416) Dual OleAutomation Dispatchable
  1293. // GUID: {72B945E0-253B-11CF-A988-00AA006BC149}
  1294. // *********************************************************************//
  1295. IADsCollection = interface(IDispatch)
  1296. ['{72B945E0-253B-11CF-A988-00AA006BC149}']
  1297. function Get__NewEnum: IUnknown; safecall;
  1298. procedure Add(const bstrName: WideString; vItem: OleVariant); safecall;
  1299. procedure Remove(const bstrItemToBeRemoved: WideString); safecall;
  1300. function GetObject(const bstrName: WideString): OleVariant; safecall;
  1301. property _NewEnum: IUnknown read Get__NewEnum;
  1302. end;
  1303. // *********************************************************************//
  1304. // DispIntf: IADsCollectionDisp
  1305. // Flags: (4416) Dual OleAutomation Dispatchable
  1306. // GUID: {72B945E0-253B-11CF-A988-00AA006BC149}
  1307. // *********************************************************************//
  1308. {$ifdef SUPPORTS_DISPINTERFACE}
  1309. IADsCollectionDisp = dispinterface
  1310. ['{72B945E0-253B-11CF-A988-00AA006BC149}']
  1311. property _NewEnum: IUnknown readonly dispid -4;
  1312. procedure Add(const bstrName: WideString; vItem: OleVariant); dispid 4;
  1313. procedure Remove(const bstrItemToBeRemoved: WideString); dispid 5;
  1314. function GetObject(const bstrName: WideString): OleVariant; dispid 6;
  1315. end;
  1316. {$endif}
  1317. // *********************************************************************//
  1318. // Interface: IADsMembers
  1319. // Flags: (4416) Dual OleAutomation Dispatchable
  1320. // GUID: {451A0030-72EC-11CF-B03B-00AA006E0975}
  1321. // *********************************************************************//
  1322. IADsMembers = interface(IDispatch)
  1323. ['{451A0030-72EC-11CF-B03B-00AA006E0975}']
  1324. function Get_Count: Integer; safecall;
  1325. function Get__NewEnum: IUnknown; safecall;
  1326. function Get_Filter: OleVariant; safecall;
  1327. procedure Set_Filter(pvFilter: OleVariant); safecall;
  1328. property Count: Integer read Get_Count;
  1329. property _NewEnum: IUnknown read Get__NewEnum;
  1330. property Filter: OleVariant read Get_Filter write Set_Filter;
  1331. end;
  1332. // *********************************************************************//
  1333. // DispIntf: IADsMembersDisp
  1334. // Flags: (4416) Dual OleAutomation Dispatchable
  1335. // GUID: {451A0030-72EC-11CF-B03B-00AA006E0975}
  1336. // *********************************************************************//
  1337. {$ifdef SUPPORTS_DISPINTERFACE}
  1338. IADsMembersDisp = dispinterface
  1339. ['{451A0030-72EC-11CF-B03B-00AA006E0975}']
  1340. property Count: Integer readonly dispid 2;
  1341. property _NewEnum: IUnknown readonly dispid -4;
  1342. property Filter: OleVariant dispid 3;
  1343. end;
  1344. {$endif}
  1345. // *********************************************************************//
  1346. // Interface: IADsPropertyList
  1347. // Flags: (4416) Dual OleAutomation Dispatchable
  1348. // GUID: {C6F602B6-8F69-11D0-8528-00C04FD8D503}
  1349. // *********************************************************************//
  1350. IADsPropertyList = interface(IDispatch)
  1351. ['{C6F602B6-8F69-11D0-8528-00C04FD8D503}']
  1352. function Get_PropertyCount: Integer; safecall;
  1353. function Next: OleVariant; safecall;
  1354. procedure Skip(cElements: Integer); safecall;
  1355. procedure Reset; safecall;
  1356. function Item(varIndex: OleVariant): OleVariant; safecall;
  1357. function GetPropertyItem(const bstrName: WideString; lnADsType: Integer): OleVariant; safecall;
  1358. procedure PutPropertyItem(varData: OleVariant); safecall;
  1359. procedure ResetPropertyItem(varEntry: OleVariant); safecall;
  1360. procedure PurgePropertyList; safecall;
  1361. property PropertyCount: Integer read Get_PropertyCount;
  1362. end;
  1363. // *********************************************************************//
  1364. // DispIntf: IADsPropertyListDisp
  1365. // Flags: (4416) Dual OleAutomation Dispatchable
  1366. // GUID: {C6F602B6-8F69-11D0-8528-00C04FD8D503}
  1367. // *********************************************************************//
  1368. {$ifdef SUPPORTS_DISPINTERFACE}
  1369. IADsPropertyListDisp = dispinterface
  1370. ['{C6F602B6-8F69-11D0-8528-00C04FD8D503}']
  1371. property PropertyCount: Integer readonly dispid 2;
  1372. function Next: OleVariant; dispid 3;
  1373. procedure Skip(cElements: Integer); dispid 4;
  1374. procedure Reset; dispid 5;
  1375. function Item(varIndex: OleVariant): OleVariant; dispid 0;
  1376. function GetPropertyItem(const bstrName: WideString; lnADsType: Integer): OleVariant; dispid 6;
  1377. procedure PutPropertyItem(varData: OleVariant); dispid 7;
  1378. procedure ResetPropertyItem(varEntry: OleVariant); dispid 8;
  1379. procedure PurgePropertyList; dispid 9;
  1380. end;
  1381. {$endif}
  1382. // *********************************************************************//
  1383. // Interface: IADsPropertyEntry
  1384. // Flags: (4416) Dual OleAutomation Dispatchable
  1385. // GUID: {05792C8E-941F-11D0-8529-00C04FD8D503}
  1386. // *********************************************************************//
  1387. IADsPropertyEntry = interface(IDispatch)
  1388. ['{05792C8E-941F-11D0-8529-00C04FD8D503}']
  1389. procedure Clear; safecall;
  1390. function Get_Name: WideString; safecall;
  1391. procedure Set_Name(const retval: WideString); safecall;
  1392. function Get_ADsType: Integer; safecall;
  1393. procedure Set_ADsType(retval: Integer); safecall;
  1394. function Get_ControlCode: Integer; safecall;
  1395. procedure Set_ControlCode(retval: Integer); safecall;
  1396. function Get_Values: OleVariant; safecall;
  1397. procedure Set_Values(retval: OleVariant); safecall;
  1398. property Name: WideString read Get_Name write Set_Name;
  1399. property ADsType: Integer read Get_ADsType write Set_ADsType;
  1400. property ControlCode: Integer read Get_ControlCode write Set_ControlCode;
  1401. property Values: OleVariant read Get_Values write Set_Values;
  1402. end;
  1403. // *********************************************************************//
  1404. // DispIntf: IADsPropertyEntryDisp
  1405. // Flags: (4416) Dual OleAutomation Dispatchable
  1406. // GUID: {05792C8E-941F-11D0-8529-00C04FD8D503}
  1407. // *********************************************************************//
  1408. {$ifdef SUPPORTS_DISPINTERFACE}
  1409. IADsPropertyEntryDisp = dispinterface
  1410. ['{05792C8E-941F-11D0-8529-00C04FD8D503}']
  1411. procedure Clear; dispid 1;
  1412. property Name: WideString dispid 2;
  1413. property ADsType: Integer dispid 3;
  1414. property ControlCode: Integer dispid 4;
  1415. property Values: OleVariant dispid 5;
  1416. end;
  1417. {$endif}
  1418. // *********************************************************************//
  1419. // Interface: IADsPropertyValue
  1420. // Flags: (4416) Dual OleAutomation Dispatchable
  1421. // GUID: {79FA9AD0-A97C-11D0-8534-00C04FD8D503}
  1422. // *********************************************************************//
  1423. IADsPropertyValue = interface(IDispatch)
  1424. ['{79FA9AD0-A97C-11D0-8534-00C04FD8D503}']
  1425. procedure Clear; safecall;
  1426. function Get_ADsType: Integer; safecall;
  1427. procedure Set_ADsType(retval: Integer); safecall;
  1428. function Get_DNString: WideString; safecall;
  1429. procedure Set_DNString(const retval: WideString); safecall;
  1430. function Get_CaseExactString: WideString; safecall;
  1431. procedure Set_CaseExactString(const retval: WideString); safecall;
  1432. function Get_CaseIgnoreString: WideString; safecall;
  1433. procedure Set_CaseIgnoreString(const retval: WideString); safecall;
  1434. function Get_PrintableString: WideString; safecall;
  1435. procedure Set_PrintableString(const retval: WideString); safecall;
  1436. function Get_NumericString: WideString; safecall;
  1437. procedure Set_NumericString(const retval: WideString); safecall;
  1438. function Get_Boolean: Integer; safecall;
  1439. procedure Set_Boolean(retval: Integer); safecall;
  1440. function Get_Integer: Integer; safecall;
  1441. procedure Set_Integer(retval: Integer); safecall;
  1442. function Get_OctetString: OleVariant; safecall;
  1443. procedure Set_OctetString(retval: OleVariant); safecall;
  1444. function Get_SecurityDescriptor: IDispatch; safecall;
  1445. procedure Set_SecurityDescriptor(const retval: IDispatch); safecall;
  1446. function Get_LargeInteger: IDispatch; safecall;
  1447. procedure Set_LargeInteger(const retval: IDispatch); safecall;
  1448. function Get_UTCTime: TDateTime; safecall;
  1449. procedure Set_UTCTime(retval: TDateTime); safecall;
  1450. property ADsType: Integer read Get_ADsType write Set_ADsType;
  1451. property DNString: WideString read Get_DNString write Set_DNString;
  1452. property CaseExactString: WideString read Get_CaseExactString write Set_CaseExactString;
  1453. property CaseIgnoreString: WideString read Get_CaseIgnoreString write Set_CaseIgnoreString;
  1454. property PrintableString: WideString read Get_PrintableString write Set_PrintableString;
  1455. property NumericString: WideString read Get_NumericString write Set_NumericString;
  1456. property Boolean: Integer read Get_Boolean write Set_Boolean;
  1457. property Integer: Integer read Get_Integer write Set_Integer;
  1458. property OctetString: OleVariant read Get_OctetString write Set_OctetString;
  1459. property SecurityDescriptor: IDispatch read Get_SecurityDescriptor write Set_SecurityDescriptor;
  1460. property LargeInteger: IDispatch read Get_LargeInteger write Set_LargeInteger;
  1461. property UTCTime: TDateTime read Get_UTCTime write Set_UTCTime;
  1462. end;
  1463. // *********************************************************************//
  1464. // DispIntf: IADsPropertyValueDisp
  1465. // Flags: (4416) Dual OleAutomation Dispatchable
  1466. // GUID: {79FA9AD0-A97C-11D0-8534-00C04FD8D503}
  1467. // *********************************************************************//
  1468. {$ifdef SUPPORTS_DISPINTERFACE}
  1469. IADsPropertyValueDisp = dispinterface
  1470. ['{79FA9AD0-A97C-11D0-8534-00C04FD8D503}']
  1471. procedure Clear; dispid 1;
  1472. property ADsType: Integer dispid 2;
  1473. property DNString: WideString dispid 3;
  1474. property CaseExactString: WideString dispid 4;
  1475. property CaseIgnoreString: WideString dispid 5;
  1476. property PrintableString: WideString dispid 6;
  1477. property NumericString: WideString dispid 7;
  1478. property Boolean: Integer dispid 8;
  1479. property Integer: Integer dispid 9;
  1480. property OctetString: OleVariant dispid 10;
  1481. property SecurityDescriptor: IDispatch dispid 11;
  1482. property LargeInteger: IDispatch dispid 12;
  1483. property UTCTime: TDateTime dispid 13;
  1484. end;
  1485. {$endif}
  1486. // *********************************************************************//
  1487. // Interface: IADsPropertyValue2
  1488. // Flags: (4416) Dual OleAutomation Dispatchable
  1489. // GUID: {306E831C-5BC7-11D1-A3B8-00C04FB950DC}
  1490. // *********************************************************************//
  1491. IADsPropertyValue2 = interface(IDispatch)
  1492. ['{306E831C-5BC7-11D1-A3B8-00C04FB950DC}']
  1493. function GetObjectProperty(var lnADsType: Integer): OleVariant; safecall;
  1494. procedure PutObjectProperty(lnADsType: Integer; vProp: OleVariant); safecall;
  1495. end;
  1496. // *********************************************************************//
  1497. // DispIntf: IADsPropertyValue2Disp
  1498. // Flags: (4416) Dual OleAutomation Dispatchable
  1499. // GUID: {306E831C-5BC7-11D1-A3B8-00C04FB950DC}
  1500. // *********************************************************************//
  1501. {$ifdef SUPPORTS_DISPINTERFACE}
  1502. IADsPropertyValue2Disp = dispinterface
  1503. ['{306E831C-5BC7-11D1-A3B8-00C04FB950DC}']
  1504. function GetObjectProperty(var lnADsType: Integer): OleVariant; dispid 1;
  1505. procedure PutObjectProperty(lnADsType: Integer; vProp: OleVariant); dispid 2;
  1506. end;
  1507. {$endif}
  1508. // *********************************************************************//
  1509. // Interface: IPrivateDispatch
  1510. // Flags: (0)
  1511. // GUID: {86AB4BBE-65F6-11D1-8C13-00C04FD8D503}
  1512. // *********************************************************************//
  1513. IPrivateDispatch = interface(IUnknown)
  1514. ['{86AB4BBE-65F6-11D1-8C13-00C04FD8D503}']
  1515. function ADSIInitializeDispatchManager(dwExtensionId: Integer): HResult; stdcall;
  1516. function ADSIGetTypeInfoCount(out pctinfo: SYSUINT): HResult; stdcall;
  1517. function ADSIGetTypeInfo(itinfo: SYSUINT; lcid: LongWord; out ppTInfo: ITypeInfo): HResult; stdcall;
  1518. function ADSIGetIDsOfNames(var riid: TGUID; rgszNames: PPWord1; cNames: SYSUINT;
  1519. lcid: LongWord; out rgdispid: Integer): HResult; stdcall;
  1520. function ADSIInvoke(dispidMember: Integer; var riid: TGUID; lcid: LongWord; wFlags: Word;
  1521. var pdispparams: TGUID; out pvarResult: OleVariant; out pexcepinfo: TGUID;
  1522. out puArgErr: SYSUINT): HResult; stdcall;
  1523. end;
  1524. // *********************************************************************//
  1525. // Interface: ITypeInfo
  1526. // Flags: (0)
  1527. // GUID: {00020401-0000-0000-C000-000000000046}
  1528. // *********************************************************************//
  1529. ITypeInfo = interface(IUnknown)
  1530. ['{00020401-0000-0000-C000-000000000046}']
  1531. function RemoteGetTypeAttr(out ppTypeAttr: PUserType5; out pDummy: DWORD): HResult; stdcall;
  1532. function GetTypeComp(out ppTComp: ITypeComp): HResult; stdcall;
  1533. function RemoteGetFuncDesc(index: SYSUINT; out ppFuncDesc: PUserType6; out pDummy: DWORD): HResult; stdcall;
  1534. function RemoteGetVarDesc(index: SYSUINT; out ppVarDesc: PUserType7; out pDummy: DWORD): HResult; stdcall;
  1535. function RemoteGetNames(memid: Integer; out rgBstrNames: WideString; cMaxNames: SYSUINT;
  1536. out pcNames: SYSUINT): HResult; stdcall;
  1537. function GetRefTypeOfImplType(index: SYSUINT; out pRefType: LongWord): HResult; stdcall;
  1538. function GetImplTypeFlags(index: SYSUINT; out pImplTypeFlags: SYSINT): HResult; stdcall;
  1539. function LocalGetIDsOfNames: HResult; stdcall;
  1540. function LocalInvoke: HResult; stdcall;
  1541. function RemoteGetDocumentation(memid: Integer; refPtrFlags: LongWord;
  1542. out pBstrName: WideString; out pBstrDocString: WideString;
  1543. out pdwHelpContext: LongWord; out pBstrHelpFile: WideString): HResult; stdcall;
  1544. function RemoteGetDllEntry(memid: Integer; invkind: tagINVOKEKIND; refPtrFlags: LongWord;
  1545. out pBstrDllName: WideString; out pBstrName: WideString;
  1546. out pwOrdinal: Word): HResult; stdcall;
  1547. function GetRefTypeInfo(hreftype: LongWord; out ppTInfo: ITypeInfo): HResult; stdcall;
  1548. function LocalAddressOfMember: HResult; stdcall;
  1549. function RemoteCreateInstance(var riid: TGUID; out ppvObj: IUnknown): HResult; stdcall;
  1550. function GetMops(memid: Integer; out pBstrMops: WideString): HResult; stdcall;
  1551. function RemoteGetContainingTypeLib(out ppTLib: ITypeLib; out pIndex: SYSUINT): HResult; stdcall;
  1552. function LocalReleaseTypeAttr: HResult; stdcall;
  1553. function LocalReleaseFuncDesc: HResult; stdcall;
  1554. function LocalReleaseVarDesc: HResult; stdcall;
  1555. end;
  1556. // *********************************************************************//
  1557. // Interface: ITypeComp
  1558. // Flags: (0)
  1559. // GUID: {00020403-0000-0000-C000-000000000046}
  1560. // *********************************************************************//
  1561. ITypeComp = interface(IUnknown)
  1562. ['{00020403-0000-0000-C000-000000000046}']
  1563. function RemoteBind(szName: PWideChar; lHashVal: LongWord; wFlags: Word;
  1564. out ppTInfo: ITypeInfo; out pDescKind: tagDESCKIND;
  1565. out ppFuncDesc: PUserType6; out ppVarDesc: PUserType7;
  1566. out ppTypeComp: ITypeComp; out pDummy: DWORD): HResult; stdcall;
  1567. function RemoteBindType(szName: PWideChar; lHashVal: LongWord; out ppTInfo: ITypeInfo): HResult; stdcall;
  1568. end;
  1569. // *********************************************************************//
  1570. // Interface: ITypeLib
  1571. // Flags: (0)
  1572. // GUID: {00020402-0000-0000-C000-000000000046}
  1573. // *********************************************************************//
  1574. ITypeLib = interface(IUnknown)
  1575. ['{00020402-0000-0000-C000-000000000046}']
  1576. function RemoteGetTypeInfoCount(out pctinfo: SYSUINT): HResult; stdcall;
  1577. function GetTypeInfo(index: SYSUINT; out ppTInfo: ITypeInfo): HResult; stdcall;
  1578. function GetTypeInfoType(index: SYSUINT; out pTKind: tagTYPEKIND): HResult; stdcall;
  1579. function GetTypeInfoOfGuid(var GUID: TGUID; out ppTInfo: ITypeInfo): HResult; stdcall;
  1580. function RemoteGetLibAttr(out ppTLibAttr: PUserType10; out pDummy: DWORD): HResult; stdcall;
  1581. function GetTypeComp(out ppTComp: ITypeComp): HResult; stdcall;
  1582. function RemoteGetDocumentation(index: SYSINT; refPtrFlags: LongWord;
  1583. out pBstrName: WideString; out pBstrDocString: WideString;
  1584. out pdwHelpContext: LongWord; out pBstrHelpFile: WideString): HResult; stdcall;
  1585. function RemoteIsName(szNameBuf: PWideChar; lHashVal: LongWord; out pfName: Integer;
  1586. out pBstrLibName: WideString): HResult; stdcall;
  1587. function RemoteFindName(szNameBuf: PWideChar; lHashVal: LongWord; out ppTInfo: ITypeInfo;
  1588. out rgMemId: Integer; var pcFound: Word; out pBstrLibName: WideString): HResult; stdcall;
  1589. function LocalReleaseTLibAttr: HResult; stdcall;
  1590. end;
  1591. // *********************************************************************//
  1592. // Interface: IPrivateUnknown
  1593. // Flags: (0)
  1594. // GUID: {89126BAB-6EAD-11D1-8C18-00C04FD8D503}
  1595. // *********************************************************************//
  1596. IPrivateUnknown = interface(IUnknown)
  1597. ['{89126BAB-6EAD-11D1-8C18-00C04FD8D503}']
  1598. function ADSIInitializeObject(const lpszUserName: WideString; const lpszPassword: WideString;
  1599. lnReserved: Integer): HResult; stdcall;
  1600. function ADSIReleaseObject: HResult; stdcall;
  1601. end;
  1602. // *********************************************************************//
  1603. // Interface: IADsExtension
  1604. // Flags: (0)
  1605. // GUID: {3D35553C-D2B0-11D1-B17B-0000F87593A0}
  1606. // *********************************************************************//
  1607. IADsExtension = interface(IUnknown)
  1608. ['{3D35553C-D2B0-11D1-B17B-0000F87593A0}']
  1609. function Operate(dwCode: LongWord; varData1: OleVariant; varData2: OleVariant;
  1610. varData3: OleVariant): HResult; stdcall;
  1611. function PrivateGetIDsOfNames(var riid: TGUID; rgszNames: PPWord1; cNames: SYSUINT;
  1612. lcid: LongWord; out rgdispid: Integer): HResult; stdcall;
  1613. function PrivateInvoke(dispidMember: Integer; var riid: TGUID; lcid: LongWord; wFlags: Word;
  1614. var pdispparams: TGUID; out pvarResult: OleVariant;
  1615. out pexcepinfo: TGUID; out puArgErr: SYSUINT): HResult; stdcall;
  1616. end;
  1617. // *********************************************************************//
  1618. // Interface: IADsDeleteOps
  1619. // Flags: (4416) Dual OleAutomation Dispatchable
  1620. // GUID: {B2BD0902-8878-11D1-8C21-00C04FD8D503}
  1621. // *********************************************************************//
  1622. IADsDeleteOps = interface(IDispatch)
  1623. ['{B2BD0902-8878-11D1-8C21-00C04FD8D503}']
  1624. procedure DeleteObject(lnFlags: Integer); safecall;
  1625. end;
  1626. // *********************************************************************//
  1627. // DispIntf: IADsDeleteOpsDisp
  1628. // Flags: (4416) Dual OleAutomation Dispatchable
  1629. // GUID: {B2BD0902-8878-11D1-8C21-00C04FD8D503}
  1630. // *********************************************************************//
  1631. {$ifdef SUPPORTS_DISPINTERFACE}
  1632. IADsDeleteOpsDisp = dispinterface
  1633. ['{B2BD0902-8878-11D1-8C21-00C04FD8D503}']
  1634. procedure DeleteObject(lnFlags: Integer); dispid 2;
  1635. end;
  1636. {$endif}
  1637. // *********************************************************************//
  1638. // Interface: IADsNamespaces
  1639. // Flags: (4416) Dual OleAutomation Dispatchable
  1640. // GUID: {28B96BA0-B330-11CF-A9AD-00AA006BC149}
  1641. // *********************************************************************//
  1642. IADsNamespaces = interface(IADs)
  1643. ['{28B96BA0-B330-11CF-A9AD-00AA006BC149}']
  1644. function Get_DefaultContainer: WideString; safecall;
  1645. procedure Set_DefaultContainer(const retval: WideString); safecall;
  1646. property DefaultContainer: WideString read Get_DefaultContainer write Set_DefaultContainer;
  1647. end;
  1648. // *********************************************************************//
  1649. // DispIntf: IADsNamespacesDisp
  1650. // Flags: (4416) Dual OleAutomation Dispatchable
  1651. // GUID: {28B96BA0-B330-11CF-A9AD-00AA006BC149}
  1652. // *********************************************************************//
  1653. {$ifdef SUPPORTS_DISPINTERFACE}
  1654. IADsNamespacesDisp = dispinterface
  1655. ['{28B96BA0-B330-11CF-A9AD-00AA006BC149}']
  1656. property DefaultContainer: WideString dispid 1;
  1657. property Name: WideString readonly dispid 2;
  1658. property Class_: WideString readonly dispid 3;
  1659. property GUID: WideString readonly dispid 4;
  1660. property ADsPath: WideString readonly dispid 5;
  1661. property Parent: WideString readonly dispid 6;
  1662. property Schema: WideString readonly dispid 7;
  1663. procedure GetInfo; dispid 8;
  1664. procedure SetInfo; dispid 9;
  1665. function Get(const bstrName: WideString): OleVariant; dispid 10;
  1666. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  1667. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  1668. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  1669. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  1670. end;
  1671. {$endif}
  1672. // *********************************************************************//
  1673. // Interface: IADsClass
  1674. // Flags: (4416) Dual OleAutomation Dispatchable
  1675. // GUID: {C8F93DD0-4AE0-11CF-9E73-00AA004A5691}
  1676. // *********************************************************************//
  1677. IADsClass = interface(IADs)
  1678. ['{C8F93DD0-4AE0-11CF-9E73-00AA004A5691}']
  1679. function Get_PrimaryInterface: WideString; safecall;
  1680. function Get_CLSID: WideString; safecall;
  1681. procedure Set_CLSID(const retval: WideString); safecall;
  1682. function Get_OID: WideString; safecall;
  1683. procedure Set_OID(const retval: WideString); safecall;
  1684. function Get_Abstract: WordBool; safecall;
  1685. procedure Set_Abstract(retval: WordBool); safecall;
  1686. function Get_Auxiliary: WordBool; safecall;
  1687. procedure Set_Auxiliary(retval: WordBool); safecall;
  1688. function Get_MandatoryProperties: OleVariant; safecall;
  1689. procedure Set_MandatoryProperties(retval: OleVariant); safecall;
  1690. function Get_OptionalProperties: OleVariant; safecall;
  1691. procedure Set_OptionalProperties(retval: OleVariant); safecall;
  1692. function Get_NamingProperties: OleVariant; safecall;
  1693. procedure Set_NamingProperties(retval: OleVariant); safecall;
  1694. function Get_DerivedFrom: OleVariant; safecall;
  1695. procedure Set_DerivedFrom(retval: OleVariant); safecall;
  1696. function Get_AuxDerivedFrom: OleVariant; safecall;
  1697. procedure Set_AuxDerivedFrom(retval: OleVariant); safecall;
  1698. function Get_PossibleSuperiors: OleVariant; safecall;
  1699. procedure Set_PossibleSuperiors(retval: OleVariant); safecall;
  1700. function Get_Containment: OleVariant; safecall;
  1701. procedure Set_Containment(retval: OleVariant); safecall;
  1702. function Get_Container: WordBool; safecall;
  1703. procedure Set_Container(retval: WordBool); safecall;
  1704. function Get_HelpFileName: WideString; safecall;
  1705. procedure Set_HelpFileName(const retval: WideString); safecall;
  1706. function Get_HelpFileContext: Integer; safecall;
  1707. procedure Set_HelpFileContext(retval: Integer); safecall;
  1708. function Qualifiers: IADsCollection; safecall;
  1709. property PrimaryInterface: WideString read Get_PrimaryInterface;
  1710. property CLSID: WideString read Get_CLSID write Set_CLSID;
  1711. property OID: WideString read Get_OID write Set_OID;
  1712. property Abstract: WordBool read Get_Abstract write Set_Abstract;
  1713. property Auxiliary: WordBool read Get_Auxiliary write Set_Auxiliary;
  1714. property MandatoryProperties: OleVariant read Get_MandatoryProperties write Set_MandatoryProperties;
  1715. property OptionalProperties: OleVariant read Get_OptionalProperties write Set_OptionalProperties;
  1716. property NamingProperties: OleVariant read Get_NamingProperties write Set_NamingProperties;
  1717. property DerivedFrom: OleVariant read Get_DerivedFrom write Set_DerivedFrom;
  1718. property AuxDerivedFrom: OleVariant read Get_AuxDerivedFrom write Set_AuxDerivedFrom;
  1719. property PossibleSuperiors: OleVariant read Get_PossibleSuperiors write Set_PossibleSuperiors;
  1720. property Containment: OleVariant read Get_Containment write Set_Containment;
  1721. property Container: WordBool read Get_Container write Set_Container;
  1722. property HelpFileName: WideString read Get_HelpFileName write Set_HelpFileName;
  1723. property HelpFileContext: Integer read Get_HelpFileContext write Set_HelpFileContext;
  1724. end;
  1725. // *********************************************************************//
  1726. // DispIntf: IADsClassDisp
  1727. // Flags: (4416) Dual OleAutomation Dispatchable
  1728. // GUID: {C8F93DD0-4AE0-11CF-9E73-00AA004A5691}
  1729. // *********************************************************************//
  1730. {$ifdef SUPPORTS_DISPINTERFACE}
  1731. IADsClassDisp = dispinterface
  1732. ['{C8F93DD0-4AE0-11CF-9E73-00AA004A5691}']
  1733. property PrimaryInterface: WideString readonly dispid 15;
  1734. property CLSID: WideString dispid 16;
  1735. property OID: WideString dispid 17;
  1736. property Abstract: WordBool dispid 18;
  1737. property Auxiliary: WordBool dispid 26;
  1738. property MandatoryProperties: OleVariant dispid 19;
  1739. property OptionalProperties: OleVariant dispid 29;
  1740. property NamingProperties: OleVariant dispid 30;
  1741. property DerivedFrom: OleVariant dispid 20;
  1742. property AuxDerivedFrom: OleVariant dispid 27;
  1743. property PossibleSuperiors: OleVariant dispid 28;
  1744. property Containment: OleVariant dispid 21;
  1745. property Container: WordBool dispid 22;
  1746. property HelpFileName: WideString dispid 23;
  1747. property HelpFileContext: Integer dispid 24;
  1748. function Qualifiers: IADsCollection; dispid 25;
  1749. property Name: WideString readonly dispid 2;
  1750. property Class_: WideString readonly dispid 3;
  1751. property GUID: WideString readonly dispid 4;
  1752. property ADsPath: WideString readonly dispid 5;
  1753. property Parent: WideString readonly dispid 6;
  1754. property Schema: WideString readonly dispid 7;
  1755. procedure GetInfo; dispid 8;
  1756. procedure SetInfo; dispid 9;
  1757. function Get(const bstrName: WideString): OleVariant; dispid 10;
  1758. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  1759. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  1760. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  1761. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  1762. end;
  1763. {$endif}
  1764. // *********************************************************************//
  1765. // Interface: IADsProperty
  1766. // Flags: (4416) Dual OleAutomation Dispatchable
  1767. // GUID: {C8F93DD3-4AE0-11CF-9E73-00AA004A5691}
  1768. // *********************************************************************//
  1769. IADsProperty = interface(IADs)
  1770. ['{C8F93DD3-4AE0-11CF-9E73-00AA004A5691}']
  1771. function Get_OID: WideString; safecall;
  1772. procedure Set_OID(const retval: WideString); safecall;
  1773. function Get_Syntax: WideString; safecall;
  1774. procedure Set_Syntax(const retval: WideString); safecall;
  1775. function Get_MaxRange: Integer; safecall;
  1776. procedure Set_MaxRange(retval: Integer); safecall;
  1777. function Get_MinRange: Integer; safecall;
  1778. procedure Set_MinRange(retval: Integer); safecall;
  1779. function Get_MultiValued: WordBool; safecall;
  1780. procedure Set_MultiValued(retval: WordBool); safecall;
  1781. function Qualifiers: IADsCollection; safecall;
  1782. property OID: WideString read Get_OID write Set_OID;
  1783. property Syntax: WideString read Get_Syntax write Set_Syntax;
  1784. property MaxRange: Integer read Get_MaxRange write Set_MaxRange;
  1785. property MinRange: Integer read Get_MinRange write Set_MinRange;
  1786. property MultiValued: WordBool read Get_MultiValued write Set_MultiValued;
  1787. end;
  1788. // *********************************************************************//
  1789. // DispIntf: IADsPropertyDisp
  1790. // Flags: (4416) Dual OleAutomation Dispatchable
  1791. // GUID: {C8F93DD3-4AE0-11CF-9E73-00AA004A5691}
  1792. // *********************************************************************//
  1793. {$ifdef SUPPORTS_DISPINTERFACE}
  1794. IADsPropertyDisp = dispinterface
  1795. ['{C8F93DD3-4AE0-11CF-9E73-00AA004A5691}']
  1796. property OID: WideString dispid 17;
  1797. property Syntax: WideString dispid 18;
  1798. property MaxRange: Integer dispid 19;
  1799. property MinRange: Integer dispid 20;
  1800. property MultiValued: WordBool dispid 21;
  1801. function Qualifiers: IADsCollection; dispid 22;
  1802. property Name: WideString readonly dispid 2;
  1803. property Class_: WideString readonly dispid 3;
  1804. property GUID: WideString readonly dispid 4;
  1805. property ADsPath: WideString readonly dispid 5;
  1806. property Parent: WideString readonly dispid 6;
  1807. property Schema: WideString readonly dispid 7;
  1808. procedure GetInfo; dispid 8;
  1809. procedure SetInfo; dispid 9;
  1810. function Get(const bstrName: WideString): OleVariant; dispid 10;
  1811. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  1812. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  1813. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  1814. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  1815. end;
  1816. {$endif}
  1817. // *********************************************************************//
  1818. // Interface: IADsSyntax
  1819. // Flags: (4416) Dual OleAutomation Dispatchable
  1820. // GUID: {C8F93DD2-4AE0-11CF-9E73-00AA004A5691}
  1821. // *********************************************************************//
  1822. IADsSyntax = interface(IADs)
  1823. ['{C8F93DD2-4AE0-11CF-9E73-00AA004A5691}']
  1824. function Get_OleAutoDataType: Integer; safecall;
  1825. procedure Set_OleAutoDataType(retval: Integer); safecall;
  1826. property OleAutoDataType: Integer read Get_OleAutoDataType write Set_OleAutoDataType;
  1827. end;
  1828. // *********************************************************************//
  1829. // DispIntf: IADsSyntaxDisp
  1830. // Flags: (4416) Dual OleAutomation Dispatchable
  1831. // GUID: {C8F93DD2-4AE0-11CF-9E73-00AA004A5691}
  1832. // *********************************************************************//
  1833. {$ifdef SUPPORTS_DISPINTERFACE}
  1834. IADsSyntaxDisp = dispinterface
  1835. ['{C8F93DD2-4AE0-11CF-9E73-00AA004A5691}']
  1836. property OleAutoDataType: Integer dispid 15;
  1837. property Name: WideString readonly dispid 2;
  1838. property Class_: WideString readonly dispid 3;
  1839. property GUID: WideString readonly dispid 4;
  1840. property ADsPath: WideString readonly dispid 5;
  1841. property Parent: WideString readonly dispid 6;
  1842. property Schema: WideString readonly dispid 7;
  1843. procedure GetInfo; dispid 8;
  1844. procedure SetInfo; dispid 9;
  1845. function Get(const bstrName: WideString): OleVariant; dispid 10;
  1846. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  1847. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  1848. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  1849. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  1850. end;
  1851. {$endif}
  1852. // *********************************************************************//
  1853. // Interface: IADsLocality
  1854. // Flags: (4416) Dual OleAutomation Dispatchable
  1855. // GUID: {A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}
  1856. // *********************************************************************//
  1857. IADsLocality = interface(IADs)
  1858. ['{A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}']
  1859. function Get_Description: WideString; safecall;
  1860. procedure Set_Description(const retval: WideString); safecall;
  1861. function Get_LocalityName: WideString; safecall;
  1862. procedure Set_LocalityName(const retval: WideString); safecall;
  1863. function Get_PostalAddress: WideString; safecall;
  1864. procedure Set_PostalAddress(const retval: WideString); safecall;
  1865. function Get_SeeAlso: OleVariant; safecall;
  1866. procedure Set_SeeAlso(retval: OleVariant); safecall;
  1867. property Description: WideString read Get_Description write Set_Description;
  1868. property LocalityName: WideString read Get_LocalityName write Set_LocalityName;
  1869. property PostalAddress: WideString read Get_PostalAddress write Set_PostalAddress;
  1870. property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
  1871. end;
  1872. // *********************************************************************//
  1873. // DispIntf: IADsLocalityDisp
  1874. // Flags: (4416) Dual OleAutomation Dispatchable
  1875. // GUID: {A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}
  1876. // *********************************************************************//
  1877. {$ifdef SUPPORTS_DISPINTERFACE}
  1878. IADsLocalityDisp = dispinterface
  1879. ['{A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}']
  1880. property Description: WideString dispid 15;
  1881. property LocalityName: WideString dispid 16;
  1882. property PostalAddress: WideString dispid 17;
  1883. property SeeAlso: OleVariant dispid 18;
  1884. property Name: WideString readonly dispid 2;
  1885. property Class_: WideString readonly dispid 3;
  1886. property GUID: WideString readonly dispid 4;
  1887. property ADsPath: WideString readonly dispid 5;
  1888. property Parent: WideString readonly dispid 6;
  1889. property Schema: WideString readonly dispid 7;
  1890. procedure GetInfo; dispid 8;
  1891. procedure SetInfo; dispid 9;
  1892. function Get(const bstrName: WideString): OleVariant; dispid 10;
  1893. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  1894. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  1895. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  1896. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  1897. end;
  1898. {$endif}
  1899. // *********************************************************************//
  1900. // Interface: IADsO
  1901. // Flags: (4416) Dual OleAutomation Dispatchable
  1902. // GUID: {A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}
  1903. // *********************************************************************//
  1904. IADsO = interface(IADs)
  1905. ['{A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}']
  1906. function Get_Description: WideString; safecall;
  1907. procedure Set_Description(const retval: WideString); safecall;
  1908. function Get_LocalityName: WideString; safecall;
  1909. procedure Set_LocalityName(const retval: WideString); safecall;
  1910. function Get_PostalAddress: WideString; safecall;
  1911. procedure Set_PostalAddress(const retval: WideString); safecall;
  1912. function Get_TelephoneNumber: WideString; safecall;
  1913. procedure Set_TelephoneNumber(const retval: WideString); safecall;
  1914. function Get_FaxNumber: WideString; safecall;
  1915. procedure Set_FaxNumber(const retval: WideString); safecall;
  1916. function Get_SeeAlso: OleVariant; safecall;
  1917. procedure Set_SeeAlso(retval: OleVariant); safecall;
  1918. property Description: WideString read Get_Description write Set_Description;
  1919. property LocalityName: WideString read Get_LocalityName write Set_LocalityName;
  1920. property PostalAddress: WideString read Get_PostalAddress write Set_PostalAddress;
  1921. property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
  1922. property FaxNumber: WideString read Get_FaxNumber write Set_FaxNumber;
  1923. property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
  1924. end;
  1925. // *********************************************************************//
  1926. // DispIntf: IADsODisp
  1927. // Flags: (4416) Dual OleAutomation Dispatchable
  1928. // GUID: {A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}
  1929. // *********************************************************************//
  1930. {$ifdef SUPPORTS_DISPINTERFACE}
  1931. IADsODisp = dispinterface
  1932. ['{A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}']
  1933. property Description: WideString dispid 15;
  1934. property LocalityName: WideString dispid 16;
  1935. property PostalAddress: WideString dispid 17;
  1936. property TelephoneNumber: WideString dispid 18;
  1937. property FaxNumber: WideString dispid 19;
  1938. property SeeAlso: OleVariant dispid 20;
  1939. property Name: WideString readonly dispid 2;
  1940. property Class_: WideString readonly dispid 3;
  1941. property GUID: WideString readonly dispid 4;
  1942. property ADsPath: WideString readonly dispid 5;
  1943. property Parent: WideString readonly dispid 6;
  1944. property Schema: WideString readonly dispid 7;
  1945. procedure GetInfo; dispid 8;
  1946. procedure SetInfo; dispid 9;
  1947. function Get(const bstrName: WideString): OleVariant; dispid 10;
  1948. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  1949. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  1950. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  1951. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  1952. end;
  1953. {$endif}
  1954. // *********************************************************************//
  1955. // Interface: IADsOU
  1956. // Flags: (4416) Dual OleAutomation Dispatchable
  1957. // GUID: {A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}
  1958. // *********************************************************************//
  1959. IADsOU = interface(IADs)
  1960. ['{A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}']
  1961. function Get_Description: WideString; safecall;
  1962. procedure Set_Description(const retval: WideString); safecall;
  1963. function Get_LocalityName: WideString; safecall;
  1964. procedure Set_LocalityName(const retval: WideString); safecall;
  1965. function Get_PostalAddress: WideString; safecall;
  1966. procedure Set_PostalAddress(const retval: WideString); safecall;
  1967. function Get_TelephoneNumber: WideString; safecall;
  1968. procedure Set_TelephoneNumber(const retval: WideString); safecall;
  1969. function Get_FaxNumber: WideString; safecall;
  1970. procedure Set_FaxNumber(const retval: WideString); safecall;
  1971. function Get_SeeAlso: OleVariant; safecall;
  1972. procedure Set_SeeAlso(retval: OleVariant); safecall;
  1973. function Get_BusinessCategory: WideString; safecall;
  1974. procedure Set_BusinessCategory(const retval: WideString); safecall;
  1975. property Description: WideString read Get_Description write Set_Description;
  1976. property LocalityName: WideString read Get_LocalityName write Set_LocalityName;
  1977. property PostalAddress: WideString read Get_PostalAddress write Set_PostalAddress;
  1978. property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
  1979. property FaxNumber: WideString read Get_FaxNumber write Set_FaxNumber;
  1980. property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
  1981. property BusinessCategory: WideString read Get_BusinessCategory write Set_BusinessCategory;
  1982. end;
  1983. // *********************************************************************//
  1984. // DispIntf: IADsOUDisp
  1985. // Flags: (4416) Dual OleAutomation Dispatchable
  1986. // GUID: {A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}
  1987. // *********************************************************************//
  1988. {$ifdef SUPPORTS_DISPINTERFACE}
  1989. IADsOUDisp = dispinterface
  1990. ['{A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}']
  1991. property Description: WideString dispid 15;
  1992. property LocalityName: WideString dispid 16;
  1993. property PostalAddress: WideString dispid 17;
  1994. property TelephoneNumber: WideString dispid 18;
  1995. property FaxNumber: WideString dispid 19;
  1996. property SeeAlso: OleVariant dispid 20;
  1997. property BusinessCategory: WideString dispid 21;
  1998. property Name: WideString readonly dispid 2;
  1999. property Class_: WideString readonly dispid 3;
  2000. property GUID: WideString readonly dispid 4;
  2001. property ADsPath: WideString readonly dispid 5;
  2002. property Parent: WideString readonly dispid 6;
  2003. property Schema: WideString readonly dispid 7;
  2004. procedure GetInfo; dispid 8;
  2005. procedure SetInfo; dispid 9;
  2006. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2007. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2008. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2009. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2010. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2011. end;
  2012. {$endif}
  2013. // *********************************************************************//
  2014. // Interface: IADsDomain
  2015. // Flags: (4416) Dual OleAutomation Dispatchable
  2016. // GUID: {00E4C220-FD16-11CE-ABC4-02608C9E7553}
  2017. // *********************************************************************//
  2018. IADsDomain = interface(IADs)
  2019. ['{00E4C220-FD16-11CE-ABC4-02608C9E7553}']
  2020. function Get_IsWorkgroup: WordBool; safecall;
  2021. function Get_MinPasswordLength: Integer; safecall;
  2022. procedure Set_MinPasswordLength(retval: Integer); safecall;
  2023. function Get_MinPasswordAge: Integer; safecall;
  2024. procedure Set_MinPasswordAge(retval: Integer); safecall;
  2025. function Get_MaxPasswordAge: Integer; safecall;
  2026. procedure Set_MaxPasswordAge(retval: Integer); safecall;
  2027. function Get_MaxBadPasswordsAllowed: Integer; safecall;
  2028. procedure Set_MaxBadPasswordsAllowed(retval: Integer); safecall;
  2029. function Get_PasswordHistoryLength: Integer; safecall;
  2030. procedure Set_PasswordHistoryLength(retval: Integer); safecall;
  2031. function Get_PasswordAttributes: Integer; safecall;
  2032. procedure Set_PasswordAttributes(retval: Integer); safecall;
  2033. function Get_AutoUnlockInterval: Integer; safecall;
  2034. procedure Set_AutoUnlockInterval(retval: Integer); safecall;
  2035. function Get_LockoutObservationInterval: Integer; safecall;
  2036. procedure Set_LockoutObservationInterval(retval: Integer); safecall;
  2037. property IsWorkgroup: WordBool read Get_IsWorkgroup;
  2038. property MinPasswordLength: Integer read Get_MinPasswordLength write Set_MinPasswordLength;
  2039. property MinPasswordAge: Integer read Get_MinPasswordAge write Set_MinPasswordAge;
  2040. property MaxPasswordAge: Integer read Get_MaxPasswordAge write Set_MaxPasswordAge;
  2041. property MaxBadPasswordsAllowed: Integer read Get_MaxBadPasswordsAllowed write Set_MaxBadPasswordsAllowed;
  2042. property PasswordHistoryLength: Integer read Get_PasswordHistoryLength write Set_PasswordHistoryLength;
  2043. property PasswordAttributes: Integer read Get_PasswordAttributes write Set_PasswordAttributes;
  2044. property AutoUnlockInterval: Integer read Get_AutoUnlockInterval write Set_AutoUnlockInterval;
  2045. property LockoutObservationInterval: Integer read Get_LockoutObservationInterval write Set_LockoutObservationInterval;
  2046. end;
  2047. // *********************************************************************//
  2048. // DispIntf: IADsDomainDisp
  2049. // Flags: (4416) Dual OleAutomation Dispatchable
  2050. // GUID: {00E4C220-FD16-11CE-ABC4-02608C9E7553}
  2051. // *********************************************************************//
  2052. {$ifdef SUPPORTS_DISPINTERFACE}
  2053. IADsDomainDisp = dispinterface
  2054. ['{00E4C220-FD16-11CE-ABC4-02608C9E7553}']
  2055. property IsWorkgroup: WordBool readonly dispid 15;
  2056. property MinPasswordLength: Integer dispid 16;
  2057. property MinPasswordAge: Integer dispid 17;
  2058. property MaxPasswordAge: Integer dispid 18;
  2059. property MaxBadPasswordsAllowed: Integer dispid 19;
  2060. property PasswordHistoryLength: Integer dispid 20;
  2061. property PasswordAttributes: Integer dispid 21;
  2062. property AutoUnlockInterval: Integer dispid 22;
  2063. property LockoutObservationInterval: Integer dispid 23;
  2064. property Name: WideString readonly dispid 2;
  2065. property Class_: WideString readonly dispid 3;
  2066. property GUID: WideString readonly dispid 4;
  2067. property ADsPath: WideString readonly dispid 5;
  2068. property Parent: WideString readonly dispid 6;
  2069. property Schema: WideString readonly dispid 7;
  2070. procedure GetInfo; dispid 8;
  2071. procedure SetInfo; dispid 9;
  2072. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2073. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2074. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2075. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2076. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2077. end;
  2078. {$endif}
  2079. // *********************************************************************//
  2080. // Interface: IADsComputer
  2081. // Flags: (4416) Dual OleAutomation Dispatchable
  2082. // GUID: {EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}
  2083. // *********************************************************************//
  2084. IADsComputer = interface(IADs)
  2085. ['{EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}']
  2086. function Get_ComputerID: WideString; safecall;
  2087. function Get_Site: WideString; safecall;
  2088. function Get_Description: WideString; safecall;
  2089. procedure Set_Description(const retval: WideString); safecall;
  2090. function Get_Location: WideString; safecall;
  2091. procedure Set_Location(const retval: WideString); safecall;
  2092. function Get_PrimaryUser: WideString; safecall;
  2093. procedure Set_PrimaryUser(const retval: WideString); safecall;
  2094. function Get_Owner: WideString; safecall;
  2095. procedure Set_Owner(const retval: WideString); safecall;
  2096. function Get_Division: WideString; safecall;
  2097. procedure Set_Division(const retval: WideString); safecall;
  2098. function Get_Department: WideString; safecall;
  2099. procedure Set_Department(const retval: WideString); safecall;
  2100. function Get_Role: WideString; safecall;
  2101. procedure Set_Role(const retval: WideString); safecall;
  2102. function Get_OperatingSystem: WideString; safecall;
  2103. procedure Set_OperatingSystem(const retval: WideString); safecall;
  2104. function Get_OperatingSystemVersion: WideString; safecall;
  2105. procedure Set_OperatingSystemVersion(const retval: WideString); safecall;
  2106. function Get_Model: WideString; safecall;
  2107. procedure Set_Model(const retval: WideString); safecall;
  2108. function Get_Processor: WideString; safecall;
  2109. procedure Set_Processor(const retval: WideString); safecall;
  2110. function Get_ProcessorCount: WideString; safecall;
  2111. procedure Set_ProcessorCount(const retval: WideString); safecall;
  2112. function Get_MemorySize: WideString; safecall;
  2113. procedure Set_MemorySize(const retval: WideString); safecall;
  2114. function Get_StorageCapacity: WideString; safecall;
  2115. procedure Set_StorageCapacity(const retval: WideString); safecall;
  2116. function Get_NetAddresses: OleVariant; safecall;
  2117. procedure Set_NetAddresses(retval: OleVariant); safecall;
  2118. property ComputerID: WideString read Get_ComputerID;
  2119. property Site: WideString read Get_Site;
  2120. property Description: WideString read Get_Description write Set_Description;
  2121. property Location: WideString read Get_Location write Set_Location;
  2122. property PrimaryUser: WideString read Get_PrimaryUser write Set_PrimaryUser;
  2123. property Owner: WideString read Get_Owner write Set_Owner;
  2124. property Division: WideString read Get_Division write Set_Division;
  2125. property Department: WideString read Get_Department write Set_Department;
  2126. property Role: WideString read Get_Role write Set_Role;
  2127. property OperatingSystem: WideString read Get_OperatingSystem write Set_OperatingSystem;
  2128. property OperatingSystemVersion: WideString read Get_OperatingSystemVersion write Set_OperatingSystemVersion;
  2129. property Model: WideString read Get_Model write Set_Model;
  2130. property Processor: WideString read Get_Processor write Set_Processor;
  2131. property ProcessorCount: WideString read Get_ProcessorCount write Set_ProcessorCount;
  2132. property MemorySize: WideString read Get_MemorySize write Set_MemorySize;
  2133. property StorageCapacity: WideString read Get_StorageCapacity write Set_StorageCapacity;
  2134. property NetAddresses: OleVariant read Get_NetAddresses write Set_NetAddresses;
  2135. end;
  2136. // *********************************************************************//
  2137. // DispIntf: IADsComputerDisp
  2138. // Flags: (4416) Dual OleAutomation Dispatchable
  2139. // GUID: {EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}
  2140. // *********************************************************************//
  2141. {$ifdef SUPPORTS_DISPINTERFACE}
  2142. IADsComputerDisp = dispinterface
  2143. ['{EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}']
  2144. property ComputerID: WideString readonly dispid 16;
  2145. property Site: WideString readonly dispid 18;
  2146. property Description: WideString dispid 19;
  2147. property Location: WideString dispid 20;
  2148. property PrimaryUser: WideString dispid 21;
  2149. property Owner: WideString dispid 22;
  2150. property Division: WideString dispid 23;
  2151. property Department: WideString dispid 24;
  2152. property Role: WideString dispid 25;
  2153. property OperatingSystem: WideString dispid 26;
  2154. property OperatingSystemVersion: WideString dispid 27;
  2155. property Model: WideString dispid 28;
  2156. property Processor: WideString dispid 29;
  2157. property ProcessorCount: WideString dispid 30;
  2158. property MemorySize: WideString dispid 31;
  2159. property StorageCapacity: WideString dispid 32;
  2160. property NetAddresses: OleVariant dispid 17;
  2161. property Name: WideString readonly dispid 2;
  2162. property Class_: WideString readonly dispid 3;
  2163. property GUID: WideString readonly dispid 4;
  2164. property ADsPath: WideString readonly dispid 5;
  2165. property Parent: WideString readonly dispid 6;
  2166. property Schema: WideString readonly dispid 7;
  2167. procedure GetInfo; dispid 8;
  2168. procedure SetInfo; dispid 9;
  2169. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2170. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2171. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2172. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2173. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2174. end;
  2175. {$endif}
  2176. // *********************************************************************//
  2177. // Interface: IADsComputerOperations
  2178. // Flags: (4416) Dual OleAutomation Dispatchable
  2179. // GUID: {EF497680-1D9F-11CF-B1F3-02608C9E7553}
  2180. // *********************************************************************//
  2181. IADsComputerOperations = interface(IADs)
  2182. ['{EF497680-1D9F-11CF-B1F3-02608C9E7553}']
  2183. function Status: IDispatch; safecall;
  2184. procedure Shutdown(bReboot: WordBool); safecall;
  2185. end;
  2186. // *********************************************************************//
  2187. // DispIntf: IADsComputerOperationsDisp
  2188. // Flags: (4416) Dual OleAutomation Dispatchable
  2189. // GUID: {EF497680-1D9F-11CF-B1F3-02608C9E7553}
  2190. // *********************************************************************//
  2191. {$ifdef SUPPORTS_DISPINTERFACE}
  2192. IADsComputerOperationsDisp = dispinterface
  2193. ['{EF497680-1D9F-11CF-B1F3-02608C9E7553}']
  2194. function Status: IDispatch; dispid 33;
  2195. procedure Shutdown(bReboot: WordBool); dispid 34;
  2196. property Name: WideString readonly dispid 2;
  2197. property Class_: WideString readonly dispid 3;
  2198. property GUID: WideString readonly dispid 4;
  2199. property ADsPath: WideString readonly dispid 5;
  2200. property Parent: WideString readonly dispid 6;
  2201. property Schema: WideString readonly dispid 7;
  2202. procedure GetInfo; dispid 8;
  2203. procedure SetInfo; dispid 9;
  2204. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2205. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2206. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2207. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2208. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2209. end;
  2210. {$endif}
  2211. // *********************************************************************//
  2212. // Interface: IADsGroup
  2213. // Flags: (4416) Dual OleAutomation Dispatchable
  2214. // GUID: {27636B00-410F-11CF-B1FF-02608C9E7553}
  2215. // *********************************************************************//
  2216. IADsGroup = interface(IADs)
  2217. ['{27636B00-410F-11CF-B1FF-02608C9E7553}']
  2218. function Get_Description: WideString; safecall;
  2219. procedure Set_Description(const retval: WideString); safecall;
  2220. function Members: IADsMembers; safecall;
  2221. function IsMember(const bstrMember: WideString): WordBool; safecall;
  2222. procedure Add(const bstrNewItem: WideString); safecall;
  2223. procedure Remove(const bstrItemToBeRemoved: WideString); safecall;
  2224. property Description: WideString read Get_Description write Set_Description;
  2225. end;
  2226. // *********************************************************************//
  2227. // DispIntf: IADsGroupDisp
  2228. // Flags: (4416) Dual OleAutomation Dispatchable
  2229. // GUID: {27636B00-410F-11CF-B1FF-02608C9E7553}
  2230. // *********************************************************************//
  2231. {$ifdef SUPPORTS_DISPINTERFACE}
  2232. IADsGroupDisp = dispinterface
  2233. ['{27636B00-410F-11CF-B1FF-02608C9E7553}']
  2234. property Description: WideString dispid 15;
  2235. function Members: IADsMembers; dispid 16;
  2236. function IsMember(const bstrMember: WideString): WordBool; dispid 17;
  2237. procedure Add(const bstrNewItem: WideString); dispid 18;
  2238. procedure Remove(const bstrItemToBeRemoved: WideString); dispid 19;
  2239. property Name: WideString readonly dispid 2;
  2240. property Class_: WideString readonly dispid 3;
  2241. property GUID: WideString readonly dispid 4;
  2242. property ADsPath: WideString readonly dispid 5;
  2243. property Parent: WideString readonly dispid 6;
  2244. property Schema: WideString readonly dispid 7;
  2245. procedure GetInfo; dispid 8;
  2246. procedure SetInfo; dispid 9;
  2247. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2248. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2249. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2250. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2251. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2252. end;
  2253. {$endif}
  2254. // *********************************************************************//
  2255. // Interface: IADsUser
  2256. // Flags: (4416) Dual OleAutomation Dispatchable
  2257. // GUID: {3E37E320-17E2-11CF-ABC4-02608C9E7553}
  2258. // *********************************************************************//
  2259. IADsUser = interface(IADs)
  2260. ['{3E37E320-17E2-11CF-ABC4-02608C9E7553}']
  2261. function Get_BadLoginAddress: WideString; safecall;
  2262. function Get_BadLoginCount: Integer; safecall;
  2263. function Get_LastLogin: TDateTime; safecall;
  2264. function Get_LastLogoff: TDateTime; safecall;
  2265. function Get_LastFailedLogin: TDateTime; safecall;
  2266. function Get_PasswordLastChanged: TDateTime; safecall;
  2267. function Get_Description: WideString; safecall;
  2268. procedure Set_Description(const retval: WideString); safecall;
  2269. function Get_Division: WideString; safecall;
  2270. procedure Set_Division(const retval: WideString); safecall;
  2271. function Get_Department: WideString; safecall;
  2272. procedure Set_Department(const retval: WideString); safecall;
  2273. function Get_EmployeeID: WideString; safecall;
  2274. procedure Set_EmployeeID(const retval: WideString); safecall;
  2275. function Get_FullName: WideString; safecall;
  2276. procedure Set_FullName(const retval: WideString); safecall;
  2277. function Get_FirstName: WideString; safecall;
  2278. procedure Set_FirstName(const retval: WideString); safecall;
  2279. function Get_LastName: WideString; safecall;
  2280. procedure Set_LastName(const retval: WideString); safecall;
  2281. function Get_OtherName: WideString; safecall;
  2282. procedure Set_OtherName(const retval: WideString); safecall;
  2283. function Get_NamePrefix: WideString; safecall;
  2284. procedure Set_NamePrefix(const retval: WideString); safecall;
  2285. function Get_NameSuffix: WideString; safecall;
  2286. procedure Set_NameSuffix(const retval: WideString); safecall;
  2287. function Get_Title: WideString; safecall;
  2288. procedure Set_Title(const retval: WideString); safecall;
  2289. function Get_Manager: WideString; safecall;
  2290. procedure Set_Manager(const retval: WideString); safecall;
  2291. function Get_TelephoneHome: OleVariant; safecall;
  2292. procedure Set_TelephoneHome(retval: OleVariant); safecall;
  2293. function Get_TelephoneMobile: OleVariant; safecall;
  2294. procedure Set_TelephoneMobile(retval: OleVariant); safecall;
  2295. function Get_TelephoneNumber: OleVariant; safecall;
  2296. procedure Set_TelephoneNumber(retval: OleVariant); safecall;
  2297. function Get_TelephonePager: OleVariant; safecall;
  2298. procedure Set_TelephonePager(retval: OleVariant); safecall;
  2299. function Get_FaxNumber: OleVariant; safecall;
  2300. procedure Set_FaxNumber(retval: OleVariant); safecall;
  2301. function Get_OfficeLocations: OleVariant; safecall;
  2302. procedure Set_OfficeLocations(retval: OleVariant); safecall;
  2303. function Get_PostalAddresses: OleVariant; safecall;
  2304. procedure Set_PostalAddresses(retval: OleVariant); safecall;
  2305. function Get_PostalCodes: OleVariant; safecall;
  2306. procedure Set_PostalCodes(retval: OleVariant); safecall;
  2307. function Get_SeeAlso: OleVariant; safecall;
  2308. procedure Set_SeeAlso(retval: OleVariant); safecall;
  2309. function Get_AccountDisabled: WordBool; safecall;
  2310. procedure Set_AccountDisabled(retval: WordBool); safecall;
  2311. function Get_AccountExpirationDate: TDateTime; safecall;
  2312. procedure Set_AccountExpirationDate(retval: TDateTime); safecall;
  2313. function Get_GraceLoginsAllowed: Integer; safecall;
  2314. procedure Set_GraceLoginsAllowed(retval: Integer); safecall;
  2315. function Get_GraceLoginsRemaining: Integer; safecall;
  2316. procedure Set_GraceLoginsRemaining(retval: Integer); safecall;
  2317. function Get_IsAccountLocked: WordBool; safecall;
  2318. procedure Set_IsAccountLocked(retval: WordBool); safecall;
  2319. function Get_LoginHours: OleVariant; safecall;
  2320. procedure Set_LoginHours(retval: OleVariant); safecall;
  2321. function Get_LoginWorkstations: OleVariant; safecall;
  2322. procedure Set_LoginWorkstations(retval: OleVariant); safecall;
  2323. function Get_MaxLogins: Integer; safecall;
  2324. procedure Set_MaxLogins(retval: Integer); safecall;
  2325. function Get_MaxStorage: Integer; safecall;
  2326. procedure Set_MaxStorage(retval: Integer); safecall;
  2327. function Get_PasswordExpirationDate: TDateTime; safecall;
  2328. procedure Set_PasswordExpirationDate(retval: TDateTime); safecall;
  2329. function Get_PasswordMinimumLength: Integer; safecall;
  2330. procedure Set_PasswordMinimumLength(retval: Integer); safecall;
  2331. function Get_PasswordRequired: WordBool; safecall;
  2332. procedure Set_PasswordRequired(retval: WordBool); safecall;
  2333. function Get_RequireUniquePassword: WordBool; safecall;
  2334. procedure Set_RequireUniquePassword(retval: WordBool); safecall;
  2335. function Get_EmailAddress: WideString; safecall;
  2336. procedure Set_EmailAddress(const retval: WideString); safecall;
  2337. function Get_HomeDirectory: WideString; safecall;
  2338. procedure Set_HomeDirectory(const retval: WideString); safecall;
  2339. function Get_Languages: OleVariant; safecall;
  2340. procedure Set_Languages(retval: OleVariant); safecall;
  2341. function Get_Profile: WideString; safecall;
  2342. procedure Set_Profile(const retval: WideString); safecall;
  2343. function Get_LoginScript: WideString; safecall;
  2344. procedure Set_LoginScript(const retval: WideString); safecall;
  2345. function Get_Picture: OleVariant; safecall;
  2346. procedure Set_Picture(retval: OleVariant); safecall;
  2347. function Get_HomePage: WideString; safecall;
  2348. procedure Set_HomePage(const retval: WideString); safecall;
  2349. function Groups: IADsMembers; safecall;
  2350. procedure SetPassword(const NewPassword: WideString); safecall;
  2351. procedure ChangePassword(const bstrOldPassword: WideString; const bstrNewPassword: WideString); safecall;
  2352. property BadLoginAddress: WideString read Get_BadLoginAddress;
  2353. property BadLoginCount: Integer read Get_BadLoginCount;
  2354. property LastLogin: TDateTime read Get_LastLogin;
  2355. property LastLogoff: TDateTime read Get_LastLogoff;
  2356. property LastFailedLogin: TDateTime read Get_LastFailedLogin;
  2357. property PasswordLastChanged: TDateTime read Get_PasswordLastChanged;
  2358. property Description: WideString read Get_Description write Set_Description;
  2359. property Division: WideString read Get_Division write Set_Division;
  2360. property Department: WideString read Get_Department write Set_Department;
  2361. property EmployeeID: WideString read Get_EmployeeID write Set_EmployeeID;
  2362. property FullName: WideString read Get_FullName write Set_FullName;
  2363. property FirstName: WideString read Get_FirstName write Set_FirstName;
  2364. property LastName: WideString read Get_LastName write Set_LastName;
  2365. property OtherName: WideString read Get_OtherName write Set_OtherName;
  2366. property NamePrefix: WideString read Get_NamePrefix write Set_NamePrefix;
  2367. property NameSuffix: WideString read Get_NameSuffix write Set_NameSuffix;
  2368. property Title: WideString read Get_Title write Set_Title;
  2369. property Manager: WideString read Get_Manager write Set_Manager;
  2370. property TelephoneHome: OleVariant read Get_TelephoneHome write Set_TelephoneHome;
  2371. property TelephoneMobile: OleVariant read Get_TelephoneMobile write Set_TelephoneMobile;
  2372. property TelephoneNumber: OleVariant read Get_TelephoneNumber write Set_TelephoneNumber;
  2373. property TelephonePager: OleVariant read Get_TelephonePager write Set_TelephonePager;
  2374. property FaxNumber: OleVariant read Get_FaxNumber write Set_FaxNumber;
  2375. property OfficeLocations: OleVariant read Get_OfficeLocations write Set_OfficeLocations;
  2376. property PostalAddresses: OleVariant read Get_PostalAddresses write Set_PostalAddresses;
  2377. property PostalCodes: OleVariant read Get_PostalCodes write Set_PostalCodes;
  2378. property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
  2379. property AccountDisabled: WordBool read Get_AccountDisabled write Set_AccountDisabled;
  2380. property AccountExpirationDate: TDateTime read Get_AccountExpirationDate write Set_AccountExpirationDate;
  2381. property GraceLoginsAllowed: Integer read Get_GraceLoginsAllowed write Set_GraceLoginsAllowed;
  2382. property GraceLoginsRemaining: Integer read Get_GraceLoginsRemaining write Set_GraceLoginsRemaining;
  2383. property IsAccountLocked: WordBool read Get_IsAccountLocked write Set_IsAccountLocked;
  2384. property LoginHours: OleVariant read Get_LoginHours write Set_LoginHours;
  2385. property LoginWorkstations: OleVariant read Get_LoginWorkstations write Set_LoginWorkstations;
  2386. property MaxLogins: Integer read Get_MaxLogins write Set_MaxLogins;
  2387. property MaxStorage: Integer read Get_MaxStorage write Set_MaxStorage;
  2388. property PasswordExpirationDate: TDateTime read Get_PasswordExpirationDate write Set_PasswordExpirationDate;
  2389. property PasswordMinimumLength: Integer read Get_PasswordMinimumLength write Set_PasswordMinimumLength;
  2390. property PasswordRequired: WordBool read Get_PasswordRequired write Set_PasswordRequired;
  2391. property RequireUniquePassword: WordBool read Get_RequireUniquePassword write Set_RequireUniquePassword;
  2392. property EmailAddress: WideString read Get_EmailAddress write Set_EmailAddress;
  2393. property HomeDirectory: WideString read Get_HomeDirectory write Set_HomeDirectory;
  2394. property Languages: OleVariant read Get_Languages write Set_Languages;
  2395. property Profile: WideString read Get_Profile write Set_Profile;
  2396. property LoginScript: WideString read Get_LoginScript write Set_LoginScript;
  2397. property Picture: OleVariant read Get_Picture write Set_Picture;
  2398. property HomePage: WideString read Get_HomePage write Set_HomePage;
  2399. end;
  2400. // *********************************************************************//
  2401. // DispIntf: IADsUserDisp
  2402. // Flags: (4416) Dual OleAutomation Dispatchable
  2403. // GUID: {3E37E320-17E2-11CF-ABC4-02608C9E7553}
  2404. // *********************************************************************//
  2405. {$ifdef SUPPORTS_DISPINTERFACE}
  2406. IADsUserDisp = dispinterface
  2407. ['{3E37E320-17E2-11CF-ABC4-02608C9E7553}']
  2408. property BadLoginAddress: WideString readonly dispid 53;
  2409. property BadLoginCount: Integer readonly dispid 54;
  2410. property LastLogin: TDateTime readonly dispid 56;
  2411. property LastLogoff: TDateTime readonly dispid 57;
  2412. property LastFailedLogin: TDateTime readonly dispid 58;
  2413. property PasswordLastChanged: TDateTime readonly dispid 59;
  2414. property Description: WideString dispid 15;
  2415. property Division: WideString dispid 19;
  2416. property Department: WideString dispid 122;
  2417. property EmployeeID: WideString dispid 20;
  2418. property FullName: WideString dispid 23;
  2419. property FirstName: WideString dispid 22;
  2420. property LastName: WideString dispid 25;
  2421. property OtherName: WideString dispid 27;
  2422. property NamePrefix: WideString dispid 114;
  2423. property NameSuffix: WideString dispid 115;
  2424. property Title: WideString dispid 36;
  2425. property Manager: WideString dispid 26;
  2426. property TelephoneHome: OleVariant dispid 32;
  2427. property TelephoneMobile: OleVariant dispid 33;
  2428. property TelephoneNumber: OleVariant dispid 34;
  2429. property TelephonePager: OleVariant dispid 17;
  2430. property FaxNumber: OleVariant dispid 16;
  2431. property OfficeLocations: OleVariant dispid 28;
  2432. property PostalAddresses: OleVariant dispid 30;
  2433. property PostalCodes: OleVariant dispid 31;
  2434. property SeeAlso: OleVariant dispid 117;
  2435. property AccountDisabled: WordBool dispid 37;
  2436. property AccountExpirationDate: TDateTime dispid 38;
  2437. property GraceLoginsAllowed: Integer dispid 41;
  2438. property GraceLoginsRemaining: Integer dispid 42;
  2439. property IsAccountLocked: WordBool dispid 43;
  2440. property LoginHours: OleVariant dispid 45;
  2441. property LoginWorkstations: OleVariant dispid 46;
  2442. property MaxLogins: Integer dispid 47;
  2443. property MaxStorage: Integer dispid 48;
  2444. property PasswordExpirationDate: TDateTime dispid 49;
  2445. property PasswordMinimumLength: Integer dispid 50;
  2446. property PasswordRequired: WordBool dispid 51;
  2447. property RequireUniquePassword: WordBool dispid 52;
  2448. property EmailAddress: WideString dispid 60;
  2449. property HomeDirectory: WideString dispid 61;
  2450. property Languages: OleVariant dispid 62;
  2451. property Profile: WideString dispid 63;
  2452. property LoginScript: WideString dispid 64;
  2453. property Picture: OleVariant dispid 65;
  2454. property HomePage: WideString dispid 120;
  2455. function Groups: IADsMembers; dispid 66;
  2456. procedure SetPassword(const NewPassword: WideString); dispid 67;
  2457. procedure ChangePassword(const bstrOldPassword: WideString; const bstrNewPassword: WideString); dispid 68;
  2458. property Name: WideString readonly dispid 2;
  2459. property Class_: WideString readonly dispid 3;
  2460. property GUID: WideString readonly dispid 4;
  2461. property ADsPath: WideString readonly dispid 5;
  2462. property Parent: WideString readonly dispid 6;
  2463. property Schema: WideString readonly dispid 7;
  2464. procedure GetInfo; dispid 8;
  2465. procedure SetInfo; dispid 9;
  2466. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2467. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2468. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2469. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2470. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2471. end;
  2472. {$endif}
  2473. // *********************************************************************//
  2474. // Interface: IADsPrintQueue
  2475. // Flags: (4416) Dual OleAutomation Dispatchable
  2476. // GUID: {B15160D0-1226-11CF-A985-00AA006BC149}
  2477. // *********************************************************************//
  2478. IADsPrintQueue = interface(IADs)
  2479. ['{B15160D0-1226-11CF-A985-00AA006BC149}']
  2480. function Get_PrinterPath: WideString; safecall;
  2481. procedure Set_PrinterPath(const retval: WideString); safecall;
  2482. function Get_Model: WideString; safecall;
  2483. procedure Set_Model(const retval: WideString); safecall;
  2484. function Get_Datatype: WideString; safecall;
  2485. procedure Set_Datatype(const retval: WideString); safecall;
  2486. function Get_PrintProcessor: WideString; safecall;
  2487. procedure Set_PrintProcessor(const retval: WideString); safecall;
  2488. function Get_Description: WideString; safecall;
  2489. procedure Set_Description(const retval: WideString); safecall;
  2490. function Get_Location: WideString; safecall;
  2491. procedure Set_Location(const retval: WideString); safecall;
  2492. function Get_StartTime: TDateTime; safecall;
  2493. procedure Set_StartTime(retval: TDateTime); safecall;
  2494. function Get_UntilTime: TDateTime; safecall;
  2495. procedure Set_UntilTime(retval: TDateTime); safecall;
  2496. function Get_DefaultJobPriority: Integer; safecall;
  2497. procedure Set_DefaultJobPriority(retval: Integer); safecall;
  2498. function Get_Priority: Integer; safecall;
  2499. procedure Set_Priority(retval: Integer); safecall;
  2500. function Get_BannerPage: WideString; safecall;
  2501. procedure Set_BannerPage(const retval: WideString); safecall;
  2502. function Get_PrintDevices: OleVariant; safecall;
  2503. procedure Set_PrintDevices(retval: OleVariant); safecall;
  2504. function Get_NetAddresses: OleVariant; safecall;
  2505. procedure Set_NetAddresses(retval: OleVariant); safecall;
  2506. property PrinterPath: WideString read Get_PrinterPath write Set_PrinterPath;
  2507. property Model: WideString read Get_Model write Set_Model;
  2508. property Datatype: WideString read Get_Datatype write Set_Datatype;
  2509. property PrintProcessor: WideString read Get_PrintProcessor write Set_PrintProcessor;
  2510. property Description: WideString read Get_Description write Set_Description;
  2511. property Location: WideString read Get_Location write Set_Location;
  2512. property StartTime: TDateTime read Get_StartTime write Set_StartTime;
  2513. property UntilTime: TDateTime read Get_UntilTime write Set_UntilTime;
  2514. property DefaultJobPriority: Integer read Get_DefaultJobPriority write Set_DefaultJobPriority;
  2515. property Priority: Integer read Get_Priority write Set_Priority;
  2516. property BannerPage: WideString read Get_BannerPage write Set_BannerPage;
  2517. property PrintDevices: OleVariant read Get_PrintDevices write Set_PrintDevices;
  2518. property NetAddresses: OleVariant read Get_NetAddresses write Set_NetAddresses;
  2519. end;
  2520. // *********************************************************************//
  2521. // DispIntf: IADsPrintQueueDisp
  2522. // Flags: (4416) Dual OleAutomation Dispatchable
  2523. // GUID: {B15160D0-1226-11CF-A985-00AA006BC149}
  2524. // *********************************************************************//
  2525. {$ifdef SUPPORTS_DISPINTERFACE}
  2526. IADsPrintQueueDisp = dispinterface
  2527. ['{B15160D0-1226-11CF-A985-00AA006BC149}']
  2528. property PrinterPath: WideString dispid 15;
  2529. property Model: WideString dispid 16;
  2530. property Datatype: WideString dispid 17;
  2531. property PrintProcessor: WideString dispid 18;
  2532. property Description: WideString dispid 19;
  2533. property Location: WideString dispid 20;
  2534. property StartTime: TDateTime dispid 21;
  2535. property UntilTime: TDateTime dispid 22;
  2536. property DefaultJobPriority: Integer dispid 23;
  2537. property Priority: Integer dispid 24;
  2538. property BannerPage: WideString dispid 25;
  2539. property PrintDevices: OleVariant dispid 26;
  2540. property NetAddresses: OleVariant dispid 27;
  2541. property Name: WideString readonly dispid 2;
  2542. property Class_: WideString readonly dispid 3;
  2543. property GUID: WideString readonly dispid 4;
  2544. property ADsPath: WideString readonly dispid 5;
  2545. property Parent: WideString readonly dispid 6;
  2546. property Schema: WideString readonly dispid 7;
  2547. procedure GetInfo; dispid 8;
  2548. procedure SetInfo; dispid 9;
  2549. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2550. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2551. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2552. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2553. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2554. end;
  2555. {$endif}
  2556. // *********************************************************************//
  2557. // Interface: IADsPrintQueueOperations
  2558. // Flags: (4416) Dual OleAutomation Dispatchable
  2559. // GUID: {124BE5C0-156E-11CF-A986-00AA006BC149}
  2560. // *********************************************************************//
  2561. IADsPrintQueueOperations = interface(IADs)
  2562. ['{124BE5C0-156E-11CF-A986-00AA006BC149}']
  2563. function Get_Status: Integer; safecall;
  2564. function PrintJobs: IADsCollection; safecall;
  2565. procedure Pause; safecall;
  2566. procedure Resume; safecall;
  2567. procedure Purge; safecall;
  2568. property Status: Integer read Get_Status;
  2569. end;
  2570. // *********************************************************************//
  2571. // DispIntf: IADsPrintQueueOperationsDisp
  2572. // Flags: (4416) Dual OleAutomation Dispatchable
  2573. // GUID: {124BE5C0-156E-11CF-A986-00AA006BC149}
  2574. // *********************************************************************//
  2575. {$ifdef SUPPORTS_DISPINTERFACE}
  2576. IADsPrintQueueOperationsDisp = dispinterface
  2577. ['{124BE5C0-156E-11CF-A986-00AA006BC149}']
  2578. property Status: Integer readonly dispid 27;
  2579. function PrintJobs: IADsCollection; dispid 28;
  2580. procedure Pause; dispid 29;
  2581. procedure Resume; dispid 30;
  2582. procedure Purge; dispid 31;
  2583. property Name: WideString readonly dispid 2;
  2584. property Class_: WideString readonly dispid 3;
  2585. property GUID: WideString readonly dispid 4;
  2586. property ADsPath: WideString readonly dispid 5;
  2587. property Parent: WideString readonly dispid 6;
  2588. property Schema: WideString readonly dispid 7;
  2589. procedure GetInfo; dispid 8;
  2590. procedure SetInfo; dispid 9;
  2591. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2592. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2593. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2594. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2595. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2596. end;
  2597. {$endif}
  2598. // *********************************************************************//
  2599. // Interface: IADsPrintJob
  2600. // Flags: (4416) Dual OleAutomation Dispatchable
  2601. // GUID: {32FB6780-1ED0-11CF-A988-00AA006BC149}
  2602. // *********************************************************************//
  2603. IADsPrintJob = interface(IADs)
  2604. ['{32FB6780-1ED0-11CF-A988-00AA006BC149}']
  2605. function Get_HostPrintQueue: WideString; safecall;
  2606. function Get_User: WideString; safecall;
  2607. function Get_UserPath: WideString; safecall;
  2608. function Get_TimeSubmitted: TDateTime; safecall;
  2609. function Get_TotalPages: Integer; safecall;
  2610. function Get_Size: Integer; safecall;
  2611. function Get_Description: WideString; safecall;
  2612. procedure Set_Description(const retval: WideString); safecall;
  2613. function Get_Priority: Integer; safecall;
  2614. procedure Set_Priority(retval: Integer); safecall;
  2615. function Get_StartTime: TDateTime; safecall;
  2616. procedure Set_StartTime(retval: TDateTime); safecall;
  2617. function Get_UntilTime: TDateTime; safecall;
  2618. procedure Set_UntilTime(retval: TDateTime); safecall;
  2619. function Get_Notify: WideString; safecall;
  2620. procedure Set_Notify(const retval: WideString); safecall;
  2621. function Get_NotifyPath: WideString; safecall;
  2622. procedure Set_NotifyPath(const retval: WideString); safecall;
  2623. property HostPrintQueue: WideString read Get_HostPrintQueue;
  2624. property User: WideString read Get_User;
  2625. property UserPath: WideString read Get_UserPath;
  2626. property TimeSubmitted: TDateTime read Get_TimeSubmitted;
  2627. property TotalPages: Integer read Get_TotalPages;
  2628. property Size: Integer read Get_Size;
  2629. property Description: WideString read Get_Description write Set_Description;
  2630. property Priority: Integer read Get_Priority write Set_Priority;
  2631. property StartTime: TDateTime read Get_StartTime write Set_StartTime;
  2632. property UntilTime: TDateTime read Get_UntilTime write Set_UntilTime;
  2633. property Notify: WideString read Get_Notify write Set_Notify;
  2634. property NotifyPath: WideString read Get_NotifyPath write Set_NotifyPath;
  2635. end;
  2636. // *********************************************************************//
  2637. // DispIntf: IADsPrintJobDisp
  2638. // Flags: (4416) Dual OleAutomation Dispatchable
  2639. // GUID: {32FB6780-1ED0-11CF-A988-00AA006BC149}
  2640. // *********************************************************************//
  2641. {$ifdef SUPPORTS_DISPINTERFACE}
  2642. IADsPrintJobDisp = dispinterface
  2643. ['{32FB6780-1ED0-11CF-A988-00AA006BC149}']
  2644. property HostPrintQueue: WideString readonly dispid 15;
  2645. property User: WideString readonly dispid 16;
  2646. property UserPath: WideString readonly dispid 17;
  2647. property TimeSubmitted: TDateTime readonly dispid 18;
  2648. property TotalPages: Integer readonly dispid 19;
  2649. property Size: Integer readonly dispid 234;
  2650. property Description: WideString dispid 20;
  2651. property Priority: Integer dispid 21;
  2652. property StartTime: TDateTime dispid 22;
  2653. property UntilTime: TDateTime dispid 23;
  2654. property Notify: WideString dispid 24;
  2655. property NotifyPath: WideString dispid 25;
  2656. property Name: WideString readonly dispid 2;
  2657. property Class_: WideString readonly dispid 3;
  2658. property GUID: WideString readonly dispid 4;
  2659. property ADsPath: WideString readonly dispid 5;
  2660. property Parent: WideString readonly dispid 6;
  2661. property Schema: WideString readonly dispid 7;
  2662. procedure GetInfo; dispid 8;
  2663. procedure SetInfo; dispid 9;
  2664. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2665. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2666. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2667. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2668. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2669. end;
  2670. {$endif}
  2671. // *********************************************************************//
  2672. // Interface: IADsPrintJobOperations
  2673. // Flags: (4416) Dual OleAutomation Dispatchable
  2674. // GUID: {9A52DB30-1ECF-11CF-A988-00AA006BC149}
  2675. // *********************************************************************//
  2676. IADsPrintJobOperations = interface(IADs)
  2677. ['{9A52DB30-1ECF-11CF-A988-00AA006BC149}']
  2678. function Get_Status: Integer; safecall;
  2679. function Get_TimeElapsed: Integer; safecall;
  2680. function Get_PagesPrinted: Integer; safecall;
  2681. function Get_Position: Integer; safecall;
  2682. procedure Set_Position(retval: Integer); safecall;
  2683. procedure Pause; safecall;
  2684. procedure Resume; safecall;
  2685. property Status: Integer read Get_Status;
  2686. property TimeElapsed: Integer read Get_TimeElapsed;
  2687. property PagesPrinted: Integer read Get_PagesPrinted;
  2688. property Position: Integer read Get_Position write Set_Position;
  2689. end;
  2690. // *********************************************************************//
  2691. // DispIntf: IADsPrintJobOperationsDisp
  2692. // Flags: (4416) Dual OleAutomation Dispatchable
  2693. // GUID: {9A52DB30-1ECF-11CF-A988-00AA006BC149}
  2694. // *********************************************************************//
  2695. {$ifdef SUPPORTS_DISPINTERFACE}
  2696. IADsPrintJobOperationsDisp = dispinterface
  2697. ['{9A52DB30-1ECF-11CF-A988-00AA006BC149}']
  2698. property Status: Integer readonly dispid 26;
  2699. property TimeElapsed: Integer readonly dispid 27;
  2700. property PagesPrinted: Integer readonly dispid 28;
  2701. property Position: Integer dispid 29;
  2702. procedure Pause; dispid 30;
  2703. procedure Resume; dispid 31;
  2704. property Name: WideString readonly dispid 2;
  2705. property Class_: WideString readonly dispid 3;
  2706. property GUID: WideString readonly dispid 4;
  2707. property ADsPath: WideString readonly dispid 5;
  2708. property Parent: WideString readonly dispid 6;
  2709. property Schema: WideString readonly dispid 7;
  2710. procedure GetInfo; dispid 8;
  2711. procedure SetInfo; dispid 9;
  2712. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2713. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2714. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2715. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2716. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2717. end;
  2718. {$endif}
  2719. // *********************************************************************//
  2720. // Interface: IADsService
  2721. // Flags: (4416) Dual OleAutomation Dispatchable
  2722. // GUID: {68AF66E0-31CA-11CF-A98A-00AA006BC149}
  2723. // *********************************************************************//
  2724. IADsService = interface(IADs)
  2725. ['{68AF66E0-31CA-11CF-A98A-00AA006BC149}']
  2726. function Get_HostComputer: WideString; safecall;
  2727. procedure Set_HostComputer(const retval: WideString); safecall;
  2728. function Get_DisplayName: WideString; safecall;
  2729. procedure Set_DisplayName(const retval: WideString); safecall;
  2730. function Get_Version: WideString; safecall;
  2731. procedure Set_Version(const retval: WideString); safecall;
  2732. function Get_ServiceType: Integer; safecall;
  2733. procedure Set_ServiceType(retval: Integer); safecall;
  2734. function Get_StartType: Integer; safecall;
  2735. procedure Set_StartType(retval: Integer); safecall;
  2736. function Get_Path: WideString; safecall;
  2737. procedure Set_Path(const retval: WideString); safecall;
  2738. function Get_StartupParameters: WideString; safecall;
  2739. procedure Set_StartupParameters(const retval: WideString); safecall;
  2740. function Get_ErrorControl: Integer; safecall;
  2741. procedure Set_ErrorControl(retval: Integer); safecall;
  2742. function Get_LoadOrderGroup: WideString; safecall;
  2743. procedure Set_LoadOrderGroup(const retval: WideString); safecall;
  2744. function Get_ServiceAccountName: WideString; safecall;
  2745. procedure Set_ServiceAccountName(const retval: WideString); safecall;
  2746. function Get_ServiceAccountPath: WideString; safecall;
  2747. procedure Set_ServiceAccountPath(const retval: WideString); safecall;
  2748. function Get_Dependencies: OleVariant; safecall;
  2749. procedure Set_Dependencies(retval: OleVariant); safecall;
  2750. property HostComputer: WideString read Get_HostComputer write Set_HostComputer;
  2751. property DisplayName: WideString read Get_DisplayName write Set_DisplayName;
  2752. property Version: WideString read Get_Version write Set_Version;
  2753. property ServiceType: Integer read Get_ServiceType write Set_ServiceType;
  2754. property StartType: Integer read Get_StartType write Set_StartType;
  2755. property Path: WideString read Get_Path write Set_Path;
  2756. property StartupParameters: WideString read Get_StartupParameters write Set_StartupParameters;
  2757. property ErrorControl: Integer read Get_ErrorControl write Set_ErrorControl;
  2758. property LoadOrderGroup: WideString read Get_LoadOrderGroup write Set_LoadOrderGroup;
  2759. property ServiceAccountName: WideString read Get_ServiceAccountName write Set_ServiceAccountName;
  2760. property ServiceAccountPath: WideString read Get_ServiceAccountPath write Set_ServiceAccountPath;
  2761. property Dependencies: OleVariant read Get_Dependencies write Set_Dependencies;
  2762. end;
  2763. // *********************************************************************//
  2764. // DispIntf: IADsServiceDisp
  2765. // Flags: (4416) Dual OleAutomation Dispatchable
  2766. // GUID: {68AF66E0-31CA-11CF-A98A-00AA006BC149}
  2767. // *********************************************************************//
  2768. {$ifdef SUPPORTS_DISPINTERFACE}
  2769. IADsServiceDisp = dispinterface
  2770. ['{68AF66E0-31CA-11CF-A98A-00AA006BC149}']
  2771. property HostComputer: WideString dispid 15;
  2772. property DisplayName: WideString dispid 16;
  2773. property Version: WideString dispid 17;
  2774. property ServiceType: Integer dispid 18;
  2775. property StartType: Integer dispid 19;
  2776. property Path: WideString dispid 20;
  2777. property StartupParameters: WideString dispid 21;
  2778. property ErrorControl: Integer dispid 22;
  2779. property LoadOrderGroup: WideString dispid 23;
  2780. property ServiceAccountName: WideString dispid 24;
  2781. property ServiceAccountPath: WideString dispid 25;
  2782. property Dependencies: OleVariant dispid 26;
  2783. property Name: WideString readonly dispid 2;
  2784. property Class_: WideString readonly dispid 3;
  2785. property GUID: WideString readonly dispid 4;
  2786. property ADsPath: WideString readonly dispid 5;
  2787. property Parent: WideString readonly dispid 6;
  2788. property Schema: WideString readonly dispid 7;
  2789. procedure GetInfo; dispid 8;
  2790. procedure SetInfo; dispid 9;
  2791. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2792. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2793. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2794. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2795. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2796. end;
  2797. {$endif}
  2798. // *********************************************************************//
  2799. // Interface: IADsServiceOperations
  2800. // Flags: (4416) Dual OleAutomation Dispatchable
  2801. // GUID: {5D7B33F0-31CA-11CF-A98A-00AA006BC149}
  2802. // *********************************************************************//
  2803. IADsServiceOperations = interface(IADs)
  2804. ['{5D7B33F0-31CA-11CF-A98A-00AA006BC149}']
  2805. function Get_Status: Integer; safecall;
  2806. procedure Start; safecall;
  2807. procedure Stop; safecall;
  2808. procedure Pause; safecall;
  2809. procedure Continue; safecall;
  2810. procedure SetPassword(const bstrNewPassword: WideString); safecall;
  2811. property Status: Integer read Get_Status;
  2812. end;
  2813. // *********************************************************************//
  2814. // DispIntf: IADsServiceOperationsDisp
  2815. // Flags: (4416) Dual OleAutomation Dispatchable
  2816. // GUID: {5D7B33F0-31CA-11CF-A98A-00AA006BC149}
  2817. // *********************************************************************//
  2818. {$ifdef SUPPORTS_DISPINTERFACE}
  2819. IADsServiceOperationsDisp = dispinterface
  2820. ['{5D7B33F0-31CA-11CF-A98A-00AA006BC149}']
  2821. property Status: Integer readonly dispid 27;
  2822. procedure Start; dispid 28;
  2823. procedure Stop; dispid 29;
  2824. procedure Pause; dispid 30;
  2825. procedure Continue; dispid 31;
  2826. procedure SetPassword(const bstrNewPassword: WideString); dispid 32;
  2827. property Name: WideString readonly dispid 2;
  2828. property Class_: WideString readonly dispid 3;
  2829. property GUID: WideString readonly dispid 4;
  2830. property ADsPath: WideString readonly dispid 5;
  2831. property Parent: WideString readonly dispid 6;
  2832. property Schema: WideString readonly dispid 7;
  2833. procedure GetInfo; dispid 8;
  2834. procedure SetInfo; dispid 9;
  2835. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2836. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2837. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2838. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2839. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2840. end;
  2841. {$endif}
  2842. // *********************************************************************//
  2843. // Interface: IADsFileService
  2844. // Flags: (4416) Dual OleAutomation Dispatchable
  2845. // GUID: {A89D1900-31CA-11CF-A98A-00AA006BC149}
  2846. // *********************************************************************//
  2847. IADsFileService = interface(IADsService)
  2848. ['{A89D1900-31CA-11CF-A98A-00AA006BC149}']
  2849. function Get_Description: WideString; safecall;
  2850. procedure Set_Description(const retval: WideString); safecall;
  2851. function Get_MaxUserCount: Integer; safecall;
  2852. procedure Set_MaxUserCount(retval: Integer); safecall;
  2853. property Description: WideString read Get_Description write Set_Description;
  2854. property MaxUserCount: Integer read Get_MaxUserCount write Set_MaxUserCount;
  2855. end;
  2856. // *********************************************************************//
  2857. // DispIntf: IADsFileServiceDisp
  2858. // Flags: (4416) Dual OleAutomation Dispatchable
  2859. // GUID: {A89D1900-31CA-11CF-A98A-00AA006BC149}
  2860. // *********************************************************************//
  2861. {$ifdef SUPPORTS_DISPINTERFACE}
  2862. IADsFileServiceDisp = dispinterface
  2863. ['{A89D1900-31CA-11CF-A98A-00AA006BC149}']
  2864. property Description: WideString dispid 33;
  2865. property MaxUserCount: Integer dispid 34;
  2866. property HostComputer: WideString dispid 15;
  2867. property DisplayName: WideString dispid 16;
  2868. property Version: WideString dispid 17;
  2869. property ServiceType: Integer dispid 18;
  2870. property StartType: Integer dispid 19;
  2871. property Path: WideString dispid 20;
  2872. property StartupParameters: WideString dispid 21;
  2873. property ErrorControl: Integer dispid 22;
  2874. property LoadOrderGroup: WideString dispid 23;
  2875. property ServiceAccountName: WideString dispid 24;
  2876. property ServiceAccountPath: WideString dispid 25;
  2877. property Dependencies: OleVariant dispid 26;
  2878. property Name: WideString readonly dispid 2;
  2879. property Class_: WideString readonly dispid 3;
  2880. property GUID: WideString readonly dispid 4;
  2881. property ADsPath: WideString readonly dispid 5;
  2882. property Parent: WideString readonly dispid 6;
  2883. property Schema: WideString readonly dispid 7;
  2884. procedure GetInfo; dispid 8;
  2885. procedure SetInfo; dispid 9;
  2886. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2887. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2888. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2889. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2890. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2891. end;
  2892. {$endif}
  2893. // *********************************************************************//
  2894. // Interface: IADsFileServiceOperations
  2895. // Flags: (4416) Dual OleAutomation Dispatchable
  2896. // GUID: {A02DED10-31CA-11CF-A98A-00AA006BC149}
  2897. // *********************************************************************//
  2898. IADsFileServiceOperations = interface(IADsServiceOperations)
  2899. ['{A02DED10-31CA-11CF-A98A-00AA006BC149}']
  2900. function Sessions: IADsCollection; safecall;
  2901. function Resources: IADsCollection; safecall;
  2902. end;
  2903. // *********************************************************************//
  2904. // DispIntf: IADsFileServiceOperationsDisp
  2905. // Flags: (4416) Dual OleAutomation Dispatchable
  2906. // GUID: {A02DED10-31CA-11CF-A98A-00AA006BC149}
  2907. // *********************************************************************//
  2908. {$ifdef SUPPORTS_DISPINTERFACE}
  2909. IADsFileServiceOperationsDisp = dispinterface
  2910. ['{A02DED10-31CA-11CF-A98A-00AA006BC149}']
  2911. function Sessions: IADsCollection; dispid 35;
  2912. function Resources: IADsCollection; dispid 36;
  2913. property Status: Integer readonly dispid 27;
  2914. procedure Start; dispid 28;
  2915. procedure Stop; dispid 29;
  2916. procedure Pause; dispid 30;
  2917. procedure Continue; dispid 31;
  2918. procedure SetPassword(const bstrNewPassword: WideString); dispid 32;
  2919. property Name: WideString readonly dispid 2;
  2920. property Class_: WideString readonly dispid 3;
  2921. property GUID: WideString readonly dispid 4;
  2922. property ADsPath: WideString readonly dispid 5;
  2923. property Parent: WideString readonly dispid 6;
  2924. property Schema: WideString readonly dispid 7;
  2925. procedure GetInfo; dispid 8;
  2926. procedure SetInfo; dispid 9;
  2927. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2928. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2929. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2930. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2931. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2932. end;
  2933. {$endif}
  2934. // *********************************************************************//
  2935. // Interface: IADsFileShare
  2936. // Flags: (4416) Dual OleAutomation Dispatchable
  2937. // GUID: {EB6DCAF0-4B83-11CF-A995-00AA006BC149}
  2938. // *********************************************************************//
  2939. IADsFileShare = interface(IADs)
  2940. ['{EB6DCAF0-4B83-11CF-A995-00AA006BC149}']
  2941. function Get_CurrentUserCount: Integer; safecall;
  2942. function Get_Description: WideString; safecall;
  2943. procedure Set_Description(const retval: WideString); safecall;
  2944. function Get_HostComputer: WideString; safecall;
  2945. procedure Set_HostComputer(const retval: WideString); safecall;
  2946. function Get_Path: WideString; safecall;
  2947. procedure Set_Path(const retval: WideString); safecall;
  2948. function Get_MaxUserCount: Integer; safecall;
  2949. procedure Set_MaxUserCount(retval: Integer); safecall;
  2950. property CurrentUserCount: Integer read Get_CurrentUserCount;
  2951. property Description: WideString read Get_Description write Set_Description;
  2952. property HostComputer: WideString read Get_HostComputer write Set_HostComputer;
  2953. property Path: WideString read Get_Path write Set_Path;
  2954. property MaxUserCount: Integer read Get_MaxUserCount write Set_MaxUserCount;
  2955. end;
  2956. // *********************************************************************//
  2957. // DispIntf: IADsFileShareDisp
  2958. // Flags: (4416) Dual OleAutomation Dispatchable
  2959. // GUID: {EB6DCAF0-4B83-11CF-A995-00AA006BC149}
  2960. // *********************************************************************//
  2961. {$ifdef SUPPORTS_DISPINTERFACE}
  2962. IADsFileShareDisp = dispinterface
  2963. ['{EB6DCAF0-4B83-11CF-A995-00AA006BC149}']
  2964. property CurrentUserCount: Integer readonly dispid 15;
  2965. property Description: WideString dispid 16;
  2966. property HostComputer: WideString dispid 17;
  2967. property Path: WideString dispid 18;
  2968. property MaxUserCount: Integer dispid 19;
  2969. property Name: WideString readonly dispid 2;
  2970. property Class_: WideString readonly dispid 3;
  2971. property GUID: WideString readonly dispid 4;
  2972. property ADsPath: WideString readonly dispid 5;
  2973. property Parent: WideString readonly dispid 6;
  2974. property Schema: WideString readonly dispid 7;
  2975. procedure GetInfo; dispid 8;
  2976. procedure SetInfo; dispid 9;
  2977. function Get(const bstrName: WideString): OleVariant; dispid 10;
  2978. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  2979. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  2980. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  2981. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  2982. end;
  2983. {$endif}
  2984. // *********************************************************************//
  2985. // Interface: IADsSession
  2986. // Flags: (4416) Dual OleAutomation Dispatchable
  2987. // GUID: {398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}
  2988. // *********************************************************************//
  2989. IADsSession = interface(IADs)
  2990. ['{398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}']
  2991. function Get_User: WideString; safecall;
  2992. function Get_UserPath: WideString; safecall;
  2993. function Get_Computer: WideString; safecall;
  2994. function Get_ComputerPath: WideString; safecall;
  2995. function Get_ConnectTime: Integer; safecall;
  2996. function Get_IdleTime: Integer; safecall;
  2997. property User: WideString read Get_User;
  2998. property UserPath: WideString read Get_UserPath;
  2999. property Computer: WideString read Get_Computer;
  3000. property ComputerPath: WideString read Get_ComputerPath;
  3001. property ConnectTime: Integer read Get_ConnectTime;
  3002. property IdleTime: Integer read Get_IdleTime;
  3003. end;
  3004. // *********************************************************************//
  3005. // DispIntf: IADsSessionDisp
  3006. // Flags: (4416) Dual OleAutomation Dispatchable
  3007. // GUID: {398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}
  3008. // *********************************************************************//
  3009. {$ifdef SUPPORTS_DISPINTERFACE}
  3010. IADsSessionDisp = dispinterface
  3011. ['{398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}']
  3012. property User: WideString readonly dispid 15;
  3013. property UserPath: WideString readonly dispid 16;
  3014. property Computer: WideString readonly dispid 17;
  3015. property ComputerPath: WideString readonly dispid 18;
  3016. property ConnectTime: Integer readonly dispid 19;
  3017. property IdleTime: Integer readonly dispid 20;
  3018. property Name: WideString readonly dispid 2;
  3019. property Class_: WideString readonly dispid 3;
  3020. property GUID: WideString readonly dispid 4;
  3021. property ADsPath: WideString readonly dispid 5;
  3022. property Parent: WideString readonly dispid 6;
  3023. property Schema: WideString readonly dispid 7;
  3024. procedure GetInfo; dispid 8;
  3025. procedure SetInfo; dispid 9;
  3026. function Get(const bstrName: WideString): OleVariant; dispid 10;
  3027. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  3028. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  3029. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  3030. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  3031. end;
  3032. {$endif}
  3033. // *********************************************************************//
  3034. // Interface: IADsResource
  3035. // Flags: (4416) Dual OleAutomation Dispatchable
  3036. // GUID: {34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}
  3037. // *********************************************************************//
  3038. IADsResource = interface(IADs)
  3039. ['{34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}']
  3040. function Get_User: WideString; safecall;
  3041. function Get_UserPath: WideString; safecall;
  3042. function Get_Path: WideString; safecall;
  3043. function Get_LockCount: Integer; safecall;
  3044. property User: WideString read Get_User;
  3045. property UserPath: WideString read Get_UserPath;
  3046. property Path: WideString read Get_Path;
  3047. property LockCount: Integer read Get_LockCount;
  3048. end;
  3049. // *********************************************************************//
  3050. // DispIntf: IADsResourceDisp
  3051. // Flags: (4416) Dual OleAutomation Dispatchable
  3052. // GUID: {34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}
  3053. // *********************************************************************//
  3054. {$ifdef SUPPORTS_DISPINTERFACE}
  3055. IADsResourceDisp = dispinterface
  3056. ['{34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}']
  3057. property User: WideString readonly dispid 15;
  3058. property UserPath: WideString readonly dispid 16;
  3059. property Path: WideString readonly dispid 17;
  3060. property LockCount: Integer readonly dispid 18;
  3061. property Name: WideString readonly dispid 2;
  3062. property Class_: WideString readonly dispid 3;
  3063. property GUID: WideString readonly dispid 4;
  3064. property ADsPath: WideString readonly dispid 5;
  3065. property Parent: WideString readonly dispid 6;
  3066. property Schema: WideString readonly dispid 7;
  3067. procedure GetInfo; dispid 8;
  3068. procedure SetInfo; dispid 9;
  3069. function Get(const bstrName: WideString): OleVariant; dispid 10;
  3070. procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
  3071. function GetEx(const bstrName: WideString): OleVariant; dispid 12;
  3072. procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
  3073. procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
  3074. end;
  3075. {$endif}
  3076. // *********************************************************************//
  3077. // Interface: IADsOpenDSObject
  3078. // Flags: (4416) Dual OleAutomation Dispatchable
  3079. // GUID: {DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}
  3080. // *********************************************************************//
  3081. IADsOpenDSObject = interface(IDispatch)
  3082. ['{DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}']
  3083. function OpenDSObject(const lpszDNName: WideString; const lpszUserName: WideString;
  3084. const lpszPassword: WideString; lnReserved: Integer): IDispatch; safecall;
  3085. end;
  3086. // *********************************************************************//
  3087. // DispIntf: IADsOpenDSObjectDisp
  3088. // Flags: (4416) Dual OleAutomation Dispatchable
  3089. // GUID: {DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}
  3090. // *********************************************************************//
  3091. {$ifdef SUPPORTS_DISPINTERFACE}
  3092. IADsOpenDSObjectDisp = dispinterface
  3093. ['{DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}']
  3094. function OpenDSObject(const lpszDNName: WideString; const lpszUserName: WideString;
  3095. const lpszPassword: WideString; lnReserved: Integer): IDispatch; dispid 1;
  3096. end;
  3097. {$endif}
  3098. // *********************************************************************//
  3099. // Interface: IDirectoryObject
  3100. // Flags: (0)
  3101. // GUID: {E798DE2C-22E4-11D0-84FE-00C04FD8D503}
  3102. // *********************************************************************//
  3103. IDirectoryObject = interface(IUnknown)
  3104. ['{E798DE2C-22E4-11D0-84FE-00C04FD8D503}']
  3105. function GetObjectInformation(out ppObjInfo: PUserType11): HResult; stdcall;
  3106. function GetObjectAttributes(var pAttributeNames: PWideChar; dwNumberAttributes: LongWord;
  3107. out ppAttributeEntries: PUserType12;
  3108. out pdwNumAttributesReturned: LongWord): HResult; stdcall;
  3109. function SetObjectAttributes(var pAttributeEntries: _ads_attr_info; dwNumAttributes: LongWord;
  3110. out pdwNumAttributesModified: LongWord): HResult; stdcall;
  3111. function CreateDSObject(pszRDNName: PWideChar; var pAttributeEntries: _ads_attr_info;
  3112. dwNumAttributes: LongWord; out ppObject: IDispatch): HResult; stdcall;
  3113. function DeleteDSObject(pszRDNName: PWideChar): HResult; stdcall;
  3114. end;
  3115. // *********************************************************************//
  3116. // Interface: IDirectorySearch
  3117. // Flags: (0)
  3118. // GUID: {109BA8EC-92F0-11D0-A790-00C04FD8D5A8}
  3119. // *********************************************************************//
  3120. IDirectorySearch = interface(IUnknown)
  3121. ['{109BA8EC-92F0-11D0-A790-00C04FD8D5A8}']
  3122. function SetSearchPreference(var pSearchPrefs: ads_searchpref_info; dwNumPrefs: LongWord): HResult; stdcall;
  3123. function ExecuteSearch(pszSearchFilter: PWideChar; var pAttributeNames: PWideChar;
  3124. dwNumberAttributes: LongWord; out phSearchResult: Pointer): HResult; stdcall;
  3125. function AbandonSearch(var phSearchResult: Pointer): HResult; stdcall;
  3126. function GetFirstRow(var hSearchResult: Pointer): HResult; stdcall;
  3127. function GetNextRow(var hSearchResult: Pointer): HResult; stdcall;
  3128. function GetPreviousRow(var hSearchResult: Pointer): HResult; stdcall;
  3129. function GetNextColumnName(var hSearchHandle: Pointer; out ppszColumnName: PWideChar): HResult; stdcall;
  3130. function GetColumn(var hSearchResult: Pointer; szColumnName: PWideChar;
  3131. out pSearchColumn: ads_search_column): HResult; stdcall;
  3132. function FreeColumn(var pSearchColumn: ads_search_column): HResult; stdcall;
  3133. function CloseSearchHandle(var hSearchResult: Pointer): HResult; stdcall;
  3134. end;
  3135. // *********************************************************************//
  3136. // Interface: IDirectorySchemaMgmt
  3137. // Flags: (0)
  3138. // GUID: {75DB3B9C-A4D8-11D0-A79C-00C04FD8D5A8}
  3139. // *********************************************************************//
  3140. IDirectorySchemaMgmt = interface(IUnknown)
  3141. ['{75DB3B9C-A4D8-11D0-A79C-00C04FD8D5A8}']
  3142. function EnumAttributes(var ppszAttrNames: PWideChar; dwNumAttributes: LongWord;
  3143. ppAttrDefinition: PPUserType1; var pdwNumAttributes: LongWord): HResult; stdcall;
  3144. function CreateAttributeDefinition(pszAttributeName: PWideChar;
  3145. var pAttributeDefinition: _ads_attr_def): HResult; stdcall;
  3146. function WriteAttributeDefinition(pszAttributeName: PWideChar;
  3147. var pAttributeDefinition: _ads_attr_def): HResult; stdcall;
  3148. function DeleteAttributeDefinition(pszAttributeName: PWideChar): HResult; stdcall;
  3149. function EnumClasses(var ppszClassNames: PWideChar; dwNumClasses: LongWord;
  3150. ppClassDefinition: PPUserType2; var pdwNumClasses: LongWord): HResult; stdcall;
  3151. function WriteClassDefinition(pszClassName: PWideChar; var pClassDefinition: _ads_class_def): HResult; stdcall;
  3152. function CreateClassDefinition(pszClassName: PWideChar; var pClassDefinition: _ads_class_def): HResult; stdcall;
  3153. function DeleteClassDefinition(pszClassName: PWideChar): HResult; stdcall;
  3154. end;
  3155. // *********************************************************************//
  3156. // Interface: IADsAggregatee
  3157. // Flags: (0)
  3158. // GUID: {1346CE8C-9039-11D0-8528-00C04FD8D503}
  3159. // *********************************************************************//
  3160. IADsAggregatee = interface(IUnknown)
  3161. ['{1346CE8C-9039-11D0-8528-00C04FD8D503}']
  3162. function ConnectAsAggregatee(const pOuterUnknown: IUnknown): HResult; stdcall;
  3163. function DisconnectAsAggregatee: HResult; stdcall;
  3164. function RelinquishInterface(var riid: TGUID): HResult; stdcall;
  3165. function RestoreInterface(var riid: TGUID): HResult; stdcall;
  3166. end;
  3167. // *********************************************************************//
  3168. // Interface: IADsAggregator
  3169. // Flags: (0)
  3170. // GUID: {52DB5FB0-941F-11D0-8529-00C04FD8D503}
  3171. // *********************************************************************//
  3172. IADsAggregator = interface(IUnknown)
  3173. ['{52DB5FB0-941F-11D0-8529-00C04FD8D503}']
  3174. function ConnectAsAggregator(const pAggregatee: IUnknown): HResult; stdcall;
  3175. function DisconnectAsAggregator: HResult; stdcall;
  3176. end;
  3177. // *********************************************************************//
  3178. // Interface: IADsAccessControlEntry
  3179. // Flags: (4416) Dual OleAutomation Dispatchable
  3180. // GUID: {B4F3A14C-9BDD-11D0-852C-00C04FD8D503}
  3181. // *********************************************************************//
  3182. IADsAccessControlEntry = interface(IDispatch)
  3183. ['{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}']
  3184. function Get_AccessMask: Integer; safecall;
  3185. procedure Set_AccessMask(retval: Integer); safecall;
  3186. function Get_AceType: Integer; safecall;
  3187. procedure Set_AceType(retval: Integer); safecall;
  3188. function Get_AceFlags: Integer; safecall;
  3189. procedure Set_AceFlags(retval: Integer); safecall;
  3190. function Get_Flags: Integer; safecall;
  3191. procedure Set_Flags(retval: Integer); safecall;
  3192. function Get_ObjectType: WideString; safecall;
  3193. procedure Set_ObjectType(const retval: WideString); safecall;
  3194. function Get_InheritedObjectType: WideString; safecall;
  3195. procedure Set_InheritedObjectType(const retval: WideString); safecall;
  3196. function Get_Trustee: WideString; safecall;
  3197. procedure Set_Trustee(const retval: WideString); safecall;
  3198. property AccessMask: Integer read Get_AccessMask write Set_AccessMask;
  3199. property AceType: Integer read Get_AceType write Set_AceType;
  3200. property AceFlags: Integer read Get_AceFlags write Set_AceFlags;
  3201. property Flags: Integer read Get_Flags write Set_Flags;
  3202. property ObjectType: WideString read Get_ObjectType write Set_ObjectType;
  3203. property InheritedObjectType: WideString read Get_InheritedObjectType write Set_InheritedObjectType;
  3204. property Trustee: WideString read Get_Trustee write Set_Trustee;
  3205. end;
  3206. // *********************************************************************//
  3207. // DispIntf: IADsAccessControlEntryDisp
  3208. // Flags: (4416) Dual OleAutomation Dispatchable
  3209. // GUID: {B4F3A14C-9BDD-11D0-852C-00C04FD8D503}
  3210. // *********************************************************************//
  3211. {$ifdef SUPPORTS_DISPINTERFACE}
  3212. IADsAccessControlEntryDisp = dispinterface
  3213. ['{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}']
  3214. property AccessMask: Integer dispid 2;
  3215. property AceType: Integer dispid 3;
  3216. property AceFlags: Integer dispid 4;
  3217. property Flags: Integer dispid 5;
  3218. property ObjectType: WideString dispid 6;
  3219. property InheritedObjectType: WideString dispid 7;
  3220. property Trustee: WideString dispid 8;
  3221. end;
  3222. {$endif}
  3223. // *********************************************************************//
  3224. // Interface: IADsAccessControlList
  3225. // Flags: (4416) Dual OleAutomation Dispatchable
  3226. // GUID: {B7EE91CC-9BDD-11D0-852C-00C04FD8D503}
  3227. // *********************************************************************//
  3228. IADsAccessControlList = interface(IDispatch)
  3229. ['{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}']
  3230. function Get_AclRevision: Integer; safecall;
  3231. procedure Set_AclRevision(retval: Integer); safecall;
  3232. function Get_AceCount: Integer; safecall;
  3233. procedure Set_AceCount(retval: Integer); safecall;
  3234. procedure AddAce(const pAccessControlEntry: IDispatch); safecall;
  3235. procedure RemoveAce(const pAccessControlEntry: IDispatch); safecall;
  3236. function CopyAccessList: IDispatch; safecall;
  3237. function Get__NewEnum: IUnknown; safecall;
  3238. property AclRevision: Integer read Get_AclRevision write Set_AclRevision;
  3239. property AceCount: Integer read Get_AceCount write Set_AceCount;
  3240. property _NewEnum: IUnknown read Get__NewEnum;
  3241. end;
  3242. // *********************************************************************//
  3243. // DispIntf: IADsAccessControlListDisp
  3244. // Flags: (4416) Dual OleAutomation Dispatchable
  3245. // GUID: {B7EE91CC-9BDD-11D0-852C-00C04FD8D503}
  3246. // *********************************************************************//
  3247. {$ifdef SUPPORTS_DISPINTERFACE}
  3248. IADsAccessControlListDisp = dispinterface
  3249. ['{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}']
  3250. property AclRevision: Integer dispid 3;
  3251. property AceCount: Integer dispid 4;
  3252. procedure AddAce(const pAccessControlEntry: IDispatch); dispid 5;
  3253. procedure RemoveAce(const pAccessControlEntry: IDispatch); dispid 6;
  3254. function CopyAccessList: IDispatch; dispid 7;
  3255. property _NewEnum: IUnknown readonly dispid -4;
  3256. end;
  3257. {$endif}
  3258. // *********************************************************************//
  3259. // Interface: IADsSecurityDescriptor
  3260. // Flags: (4416) Dual OleAutomation Dispatchable
  3261. // GUID: {B8C787CA-9BDD-11D0-852C-00C04FD8D503}
  3262. // *********************************************************************//
  3263. IADsSecurityDescriptor = interface(IDispatch)
  3264. ['{B8C787CA-9BDD-11D0-852C-00C04FD8D503}']
  3265. function Get_Revision: Integer; safecall;
  3266. procedure Set_Revision(retval: Integer); safecall;
  3267. function Get_Control: Integer; safecall;
  3268. procedure Set_Control(retval: Integer); safecall;
  3269. function Get_Owner: WideString; safecall;
  3270. procedure Set_Owner(const retval: WideString); safecall;
  3271. function Get_OwnerDefaulted: WordBool; safecall;
  3272. procedure Set_OwnerDefaulted(retval: WordBool); safecall;
  3273. function Get_Group: WideString; safecall;
  3274. procedure Set_Group(const retval: WideString); safecall;
  3275. function Get_GroupDefaulted: WordBool; safecall;
  3276. procedure Set_GroupDefaulted(retval: WordBool); safecall;
  3277. function Get_DiscretionaryAcl: IDispatch; safecall;
  3278. procedure Set_DiscretionaryAcl(const retval: IDispatch); safecall;
  3279. function Get_DaclDefaulted: WordBool; safecall;
  3280. procedure Set_DaclDefaulted(retval: WordBool); safecall;
  3281. function Get_SystemAcl: IDispatch; safecall;
  3282. procedure Set_SystemAcl(const retval: IDispatch); safecall;
  3283. function Get_SaclDefaulted: WordBool; safecall;
  3284. procedure Set_SaclDefaulted(retval: WordBool); safecall;
  3285. function CopySecurityDescriptor: IDispatch; safecall;
  3286. property Revision: Integer read Get_Revision write Set_Revision;
  3287. property Control: Integer read Get_Control write Set_Control;
  3288. property Owner: WideString read Get_Owner write Set_Owner;
  3289. property OwnerDefaulted: WordBool read Get_OwnerDefaulted write Set_OwnerDefaulted;
  3290. property Group: WideString read Get_Group write Set_Group;
  3291. property GroupDefaulted: WordBool read Get_GroupDefaulted write Set_GroupDefaulted;
  3292. property DiscretionaryAcl: IDispatch read Get_DiscretionaryAcl write Set_DiscretionaryAcl;
  3293. property DaclDefaulted: WordBool read Get_DaclDefaulted write Set_DaclDefaulted;
  3294. property SystemAcl: IDispatch read Get_SystemAcl write Set_SystemAcl;
  3295. property SaclDefaulted: WordBool read Get_SaclDefaulted write Set_SaclDefaulted;
  3296. end;
  3297. // *********************************************************************//
  3298. // DispIntf: IADsSecurityDescriptorDisp
  3299. // Flags: (4416) Dual OleAutomation Dispatchable
  3300. // GUID: {B8C787CA-9BDD-11D0-852C-00C04FD8D503}
  3301. // *********************************************************************//
  3302. {$ifdef SUPPORTS_DISPINTERFACE}
  3303. IADsSecurityDescriptorDisp = dispinterface
  3304. ['{B8C787CA-9BDD-11D0-852C-00C04FD8D503}']
  3305. property Revision: Integer dispid 2;
  3306. property Control: Integer dispid 3;
  3307. property Owner: WideString dispid 4;
  3308. property OwnerDefaulted: WordBool dispid 5;
  3309. property Group: WideString dispid 6;
  3310. property GroupDefaulted: WordBool dispid 7;
  3311. property DiscretionaryAcl: IDispatch dispid 8;
  3312. property DaclDefaulted: WordBool dispid 9;
  3313. property SystemAcl: IDispatch dispid 10;
  3314. property SaclDefaulted: WordBool dispid 11;
  3315. function CopySecurityDescriptor: IDispatch; dispid 12;
  3316. end;
  3317. {$endif}
  3318. // *********************************************************************//
  3319. // Interface: IADsLargeInteger
  3320. // Flags: (4416) Dual OleAutomation Dispatchable
  3321. // GUID: {9068270B-0939-11D1-8BE1-00C04FD8D503}
  3322. // *********************************************************************//
  3323. IADsLargeInteger = interface(IDispatch)
  3324. ['{9068270B-0939-11D1-8BE1-00C04FD8D503}']
  3325. function Get_HighPart: Integer; safecall;
  3326. procedure Set_HighPart(retval: Integer); safecall;
  3327. function Get_LowPart: Integer; safecall;
  3328. procedure Set_LowPart(retval: Integer); safecall;
  3329. property HighPart: Integer read Get_HighPart write Set_HighPart;
  3330. property LowPart: Integer read Get_LowPart write Set_LowPart;
  3331. end;
  3332. // *********************************************************************//
  3333. // DispIntf: IADsLargeIntegerDisp
  3334. // Flags: (4416) Dual OleAutomation Dispatchable
  3335. // GUID: {9068270B-0939-11D1-8BE1-00C04FD8D503}
  3336. // *********************************************************************//
  3337. {$ifdef SUPPORTS_DISPINTERFACE}
  3338. IADsLargeIntegerDisp = dispinterface
  3339. ['{9068270B-0939-11D1-8BE1-00C04FD8D503}']
  3340. property HighPart: Integer dispid 2;
  3341. property LowPart: Integer dispid 3;
  3342. end;
  3343. {$endif}
  3344. // *********************************************************************//
  3345. // Interface: IADsNameTranslate
  3346. // Flags: (4416) Dual OleAutomation Dispatchable
  3347. // GUID: {B1B272A3-3625-11D1-A3A4-00C04FB950DC}
  3348. // *********************************************************************//
  3349. IADsNameTranslate = interface(IDispatch)
  3350. ['{B1B272A3-3625-11D1-A3A4-00C04FB950DC}']
  3351. procedure Set_ChaseReferral(Param1: Integer); safecall;
  3352. procedure Init(lnSetType: Integer; const bstrADsPath: WideString); safecall;
  3353. procedure InitEx(lnSetType: Integer; const bstrADsPath: WideString;
  3354. const bstrUserID: WideString; const bstrDomain: WideString;
  3355. const bstrPassword: WideString); safecall;
  3356. procedure Set_(lnSetType: Integer; const bstrADsPath: WideString); safecall;
  3357. function Get(lnFormatType: Integer): WideString; safecall;
  3358. procedure SetEx(lnFormatType: Integer; pVar: OleVariant); safecall;
  3359. function GetEx(lnFormatType: Integer): OleVariant; safecall;
  3360. property ChaseReferral: Integer write Set_ChaseReferral;
  3361. end;
  3362. // *********************************************************************//
  3363. // DispIntf: IADsNameTranslateDisp
  3364. // Flags: (4416) Dual OleAutomation Dispatchable
  3365. // GUID: {B1B272A3-3625-11D1-A3A4-00C04FB950DC}
  3366. // *********************************************************************//
  3367. {$ifdef SUPPORTS_DISPINTERFACE}
  3368. IADsNameTranslateDisp = dispinterface
  3369. ['{B1B272A3-3625-11D1-A3A4-00C04FB950DC}']
  3370. property ChaseReferral: Integer writeonly dispid 1;
  3371. procedure Init(lnSetType: Integer; const bstrADsPath: WideString); dispid 2;
  3372. procedure InitEx(lnSetType: Integer; const bstrADsPath: WideString;
  3373. const bstrUserID: WideString; const bstrDomain: WideString;
  3374. const bstrPassword: WideString); dispid 3;
  3375. procedure Set_(lnSetType: Integer; const bstrADsPath: WideString); dispid 4;
  3376. function Get(lnFormatType: Integer): WideString; dispid 5;
  3377. procedure SetEx(lnFormatType: Integer; pVar: OleVariant); dispid 6;
  3378. function GetEx(lnFormatType: Integer): OleVariant; dispid 7;
  3379. end;
  3380. {$endif}
  3381. // *********************************************************************//
  3382. // Interface: IADsCaseIgnoreList
  3383. // Flags: (4416) Dual OleAutomation Dispatchable
  3384. // GUID: {7B66B533-4680-11D1-A3B4-00C04FB950DC}
  3385. // *********************************************************************//
  3386. IADsCaseIgnoreList = interface(IDispatch)
  3387. ['{7B66B533-4680-11D1-A3B4-00C04FB950DC}']
  3388. function Get_CaseIgnoreList: OleVariant; safecall;
  3389. procedure Set_CaseIgnoreList(retval: OleVariant); safecall;
  3390. property CaseIgnoreList: OleVariant read Get_CaseIgnoreList write Set_CaseIgnoreList;
  3391. end;
  3392. // *********************************************************************//
  3393. // DispIntf: IADsCaseIgnoreListDisp
  3394. // Flags: (4416) Dual OleAutomation Dispatchable
  3395. // GUID: {7B66B533-4680-11D1-A3B4-00C04FB950DC}
  3396. // *********************************************************************//
  3397. {$ifdef SUPPORTS_DISPINTERFACE}
  3398. IADsCaseIgnoreListDisp = dispinterface
  3399. ['{7B66B533-4680-11D1-A3B4-00C04FB950DC}']
  3400. property CaseIgnoreList: OleVariant dispid 2;
  3401. end;
  3402. {$endif}
  3403. // *********************************************************************//
  3404. // Interface: IADsFaxNumber
  3405. // Flags: (4416) Dual OleAutomation Dispatchable
  3406. // GUID: {A910DEA9-4680-11D1-A3B4-00C04FB950DC}
  3407. // *********************************************************************//
  3408. IADsFaxNumber = interface(IDispatch)
  3409. ['{A910DEA9-4680-11D1-A3B4-00C04FB950DC}']
  3410. function Get_TelephoneNumber: WideString; safecall;
  3411. procedure Set_TelephoneNumber(const retval: WideString); safecall;
  3412. function Get_Parameters: OleVariant; safecall;
  3413. procedure Set_Parameters(retval: OleVariant); safecall;
  3414. property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
  3415. property Parameters: OleVariant read Get_Parameters write Set_Parameters;
  3416. end;
  3417. // *********************************************************************//
  3418. // DispIntf: IADsFaxNumberDisp
  3419. // Flags: (4416) Dual OleAutomation Dispatchable
  3420. // GUID: {A910DEA9-4680-11D1-A3B4-00C04FB950DC}
  3421. // *********************************************************************//
  3422. {$ifdef SUPPORTS_DISPINTERFACE}
  3423. IADsFaxNumberDisp = dispinterface
  3424. ['{A910DEA9-4680-11D1-A3B4-00C04FB950DC}']
  3425. property TelephoneNumber: WideString dispid 2;
  3426. property Parameters: OleVariant dispid 3;
  3427. end;
  3428. {$endif}
  3429. // *********************************************************************//
  3430. // Interface: IADsNetAddress
  3431. // Flags: (4416) Dual OleAutomation Dispatchable
  3432. // GUID: {B21A50A9-4080-11D1-A3AC-00C04FB950DC}
  3433. // *********************************************************************//
  3434. IADsNetAddress = interface(IDispatch)
  3435. ['{B21A50A9-4080-11D1-A3AC-00C04FB950DC}']
  3436. function Get_AddressType: Integer; safecall;
  3437. procedure Set_AddressType(retval: Integer); safecall;
  3438. function Get_Address: OleVariant; safecall;
  3439. procedure Set_Address(retval: OleVariant); safecall;
  3440. property AddressType: Integer read Get_AddressType write Set_AddressType;
  3441. property Address: OleVariant read Get_Address write Set_Address;
  3442. end;
  3443. // *********************************************************************//
  3444. // DispIntf: IADsNetAddressDisp
  3445. // Flags: (4416) Dual OleAutomation Dispatchable
  3446. // GUID: {B21A50A9-4080-11D1-A3AC-00C04FB950DC}
  3447. // *********************************************************************//
  3448. {$ifdef SUPPORTS_DISPINTERFACE}
  3449. IADsNetAddressDisp = dispinterface
  3450. ['{B21A50A9-4080-11D1-A3AC-00C04FB950DC}']
  3451. property AddressType: Integer dispid 2;
  3452. property Address: OleVariant dispid 3;
  3453. end;
  3454. {$endif}
  3455. // *********************************************************************//
  3456. // Interface: IADsOctetList
  3457. // Flags: (4416) Dual OleAutomation Dispatchable
  3458. // GUID: {7B28B80F-4680-11D1-A3B4-00C04FB950DC}
  3459. // *********************************************************************//
  3460. IADsOctetList = interface(IDispatch)
  3461. ['{7B28B80F-4680-11D1-A3B4-00C04FB950DC}']
  3462. function Get_OctetList: OleVariant; safecall;
  3463. procedure Set_OctetList(retval: OleVariant); safecall;
  3464. property OctetList: OleVariant read Get_OctetList write Set_OctetList;
  3465. end;
  3466. // *********************************************************************//
  3467. // DispIntf: IADsOctetListDisp
  3468. // Flags: (4416) Dual OleAutomation Dispatchable
  3469. // GUID: {7B28B80F-4680-11D1-A3B4-00C04FB950DC}
  3470. // *********************************************************************//
  3471. {$ifdef SUPPORTS_DISPINTERFACE}
  3472. IADsOctetListDisp = dispinterface
  3473. ['{7B28B80F-4680-11D1-A3B4-00C04FB950DC}']
  3474. property OctetList: OleVariant dispid 2;
  3475. end;
  3476. {$endif}
  3477. // *********************************************************************//
  3478. // Interface: IADsEmail
  3479. // Flags: (4416) Dual OleAutomation Dispatchable
  3480. // GUID: {97AF011A-478E-11D1-A3B4-00C04FB950DC}
  3481. // *********************************************************************//
  3482. IADsEmail = interface(IDispatch)
  3483. ['{97AF011A-478E-11D1-A3B4-00C04FB950DC}']
  3484. function Get_Type_: Integer; safecall;
  3485. procedure Set_Type_(retval: Integer); safecall;
  3486. function Get_Address: WideString; safecall;
  3487. procedure Set_Address(const retval: WideString); safecall;
  3488. property Type_: Integer read Get_Type_ write Set_Type_;
  3489. property Address: WideString read Get_Address write Set_Address;
  3490. end;
  3491. // *********************************************************************//
  3492. // DispIntf: IADsEmailDisp
  3493. // Flags: (4416) Dual OleAutomation Dispatchable
  3494. // GUID: {97AF011A-478E-11D1-A3B4-00C04FB950DC}
  3495. // *********************************************************************//
  3496. {$ifdef SUPPORTS_DISPINTERFACE}
  3497. IADsEmailDisp = dispinterface
  3498. ['{97AF011A-478E-11D1-A3B4-00C04FB950DC}']
  3499. property Type_: Integer dispid 2;
  3500. property Address: WideString dispid 3;
  3501. end;
  3502. {$endif}
  3503. // *********************************************************************//
  3504. // Interface: IADsPath
  3505. // Flags: (4416) Dual OleAutomation Dispatchable
  3506. // GUID: {B287FCD5-4080-11D1-A3AC-00C04FB950DC}
  3507. // *********************************************************************//
  3508. IADsPath = interface(IDispatch)
  3509. ['{B287FCD5-4080-11D1-A3AC-00C04FB950DC}']
  3510. function Get_Type_: Integer; safecall;
  3511. procedure Set_Type_(retval: Integer); safecall;
  3512. function Get_VolumeName: WideString; safecall;
  3513. procedure Set_VolumeName(const retval: WideString); safecall;
  3514. function Get_Path: WideString; safecall;
  3515. procedure Set_Path(const retval: WideString); safecall;
  3516. property Type_: Integer read Get_Type_ write Set_Type_;
  3517. property VolumeName: WideString read Get_VolumeName write Set_VolumeName;
  3518. property Path: WideString read Get_Path write Set_Path;
  3519. end;
  3520. // *********************************************************************//
  3521. // DispIntf: IADsPathDisp
  3522. // Flags: (4416) Dual OleAutomation Dispatchable
  3523. // GUID: {B287FCD5-4080-11D1-A3AC-00C04FB950DC}
  3524. // *********************************************************************//
  3525. {$ifdef SUPPORTS_DISPINTERFACE}
  3526. IADsPathDisp = dispinterface
  3527. ['{B287FCD5-4080-11D1-A3AC-00C04FB950DC}']
  3528. property Type_: Integer dispid 2;
  3529. property VolumeName: WideString dispid 3;
  3530. property Path: WideString dispid 4;
  3531. end;
  3532. {$endif}
  3533. // *********************************************************************//
  3534. // Interface: IADsReplicaPointer
  3535. // Flags: (4416) Dual OleAutomation Dispatchable
  3536. // GUID: {F60FB803-4080-11D1-A3AC-00C04FB950DC}
  3537. // *********************************************************************//
  3538. IADsReplicaPointer = interface(IDispatch)
  3539. ['{F60FB803-4080-11D1-A3AC-00C04FB950DC}']
  3540. function Get_ServerName: WideString; safecall;
  3541. procedure Set_ServerName(const retval: WideString); safecall;
  3542. function Get_ReplicaType: Integer; safecall;
  3543. procedure Set_ReplicaType(retval: Integer); safecall;
  3544. function Get_ReplicaNumber: Integer; safecall;
  3545. procedure Set_ReplicaNumber(retval: Integer); safecall;
  3546. function Get_Count: Integer; safecall;
  3547. procedure Set_Count(retval: Integer); safecall;
  3548. function Get_ReplicaAddressHints: OleVariant; safecall;
  3549. procedure Set_ReplicaAddressHints(retval: OleVariant); safecall;
  3550. property ServerName: WideString read Get_ServerName write Set_ServerName;
  3551. property ReplicaType: Integer read Get_ReplicaType write Set_ReplicaType;
  3552. property ReplicaNumber: Integer read Get_ReplicaNumber write Set_ReplicaNumber;
  3553. property Count: Integer read Get_Count write Set_Count;
  3554. property ReplicaAddressHints: OleVariant read Get_ReplicaAddressHints write Set_ReplicaAddressHints;
  3555. end;
  3556. // *********************************************************************//
  3557. // DispIntf: IADsReplicaPointerDisp
  3558. // Flags: (4416) Dual OleAutomation Dispatchable
  3559. // GUID: {F60FB803-4080-11D1-A3AC-00C04FB950DC}
  3560. // *********************************************************************//
  3561. {$ifdef SUPPORTS_DISPINTERFACE}
  3562. IADsReplicaPointerDisp = dispinterface
  3563. ['{F60FB803-4080-11D1-A3AC-00C04FB950DC}']
  3564. property ServerName: WideString dispid 2;
  3565. property ReplicaType: Integer dispid 3;
  3566. property ReplicaNumber: Integer dispid 4;
  3567. property Count: Integer dispid 5;
  3568. property ReplicaAddressHints: OleVariant dispid 6;
  3569. end;
  3570. {$endif}
  3571. // *********************************************************************//
  3572. // Interface: IADsAcl
  3573. // Flags: (4416) Dual OleAutomation Dispatchable
  3574. // GUID: {8452D3AB-0869-11D1-A377-00C04FB950DC}
  3575. // *********************************************************************//
  3576. IADsAcl = interface(IDispatch)
  3577. ['{8452D3AB-0869-11D1-A377-00C04FB950DC}']
  3578. function Get_ProtectedAttrName: WideString; safecall;
  3579. procedure Set_ProtectedAttrName(const retval: WideString); safecall;
  3580. function Get_SubjectName: WideString; safecall;
  3581. procedure Set_SubjectName(const retval: WideString); safecall;
  3582. function Get_Privileges: Integer; safecall;
  3583. procedure Set_Privileges(retval: Integer); safecall;
  3584. function CopyAcl: IDispatch; safecall;
  3585. property ProtectedAttrName: WideString read Get_ProtectedAttrName write Set_ProtectedAttrName;
  3586. property SubjectName: WideString read Get_SubjectName write Set_SubjectName;
  3587. property Privileges: Integer read Get_Privileges write Set_Privileges;
  3588. end;
  3589. // *********************************************************************//
  3590. // DispIntf: IADsAclDisp
  3591. // Flags: (4416) Dual OleAutomation Dispatchable
  3592. // GUID: {8452D3AB-0869-11D1-A377-00C04FB950DC}
  3593. // *********************************************************************//
  3594. {$ifdef SUPPORTS_DISPINTERFACE}
  3595. IADsAclDisp = dispinterface
  3596. ['{8452D3AB-0869-11D1-A377-00C04FB950DC}']
  3597. property ProtectedAttrName: WideString dispid 2;
  3598. property SubjectName: WideString dispid 3;
  3599. property Privileges: Integer dispid 4;
  3600. function CopyAcl: IDispatch; dispid 5;
  3601. end;
  3602. {$endif}
  3603. // *********************************************************************//
  3604. // Interface: IADsTimestamp
  3605. // Flags: (4416) Dual OleAutomation Dispatchable
  3606. // GUID: {B2F5A901-4080-11D1-A3AC-00C04FB950DC}
  3607. // *********************************************************************//
  3608. IADsTimestamp = interface(IDispatch)
  3609. ['{B2F5A901-4080-11D1-A3AC-00C04FB950DC}']
  3610. function Get_WholeSeconds: Integer; safecall;
  3611. procedure Set_WholeSeconds(retval: Integer); safecall;
  3612. function Get_EventID: Integer; safecall;
  3613. procedure Set_EventID(retval: Integer); safecall;
  3614. property WholeSeconds: Integer read Get_WholeSeconds write Set_WholeSeconds;
  3615. property EventID: Integer read Get_EventID write Set_EventID;
  3616. end;
  3617. // *********************************************************************//
  3618. // DispIntf: IADsTimestampDisp
  3619. // Flags: (4416) Dual OleAutomation Dispatchable
  3620. // GUID: {B2F5A901-4080-11D1-A3AC-00C04FB950DC}
  3621. // *********************************************************************//
  3622. {$ifdef SUPPORTS_DISPINTERFACE}
  3623. IADsTimestampDisp = dispinterface
  3624. ['{B2F5A901-4080-11D1-A3AC-00C04FB950DC}']
  3625. property WholeSeconds: Integer dispid 2;
  3626. property EventID: Integer dispid 3;
  3627. end;
  3628. {$endif}
  3629. // *********************************************************************//
  3630. // Interface: IADsPostalAddress
  3631. // Flags: (4416) Dual OleAutomation Dispatchable
  3632. // GUID: {7ADECF29-4680-11D1-A3B4-00C04FB950DC}
  3633. // *********************************************************************//
  3634. IADsPostalAddress = interface(IDispatch)
  3635. ['{7ADECF29-4680-11D1-A3B4-00C04FB950DC}']
  3636. function Get_PostalAddress: OleVariant; safecall;
  3637. procedure Set_PostalAddress(retval: OleVariant); safecall;
  3638. property PostalAddress: OleVariant read Get_PostalAddress write Set_PostalAddress;
  3639. end;
  3640. // *********************************************************************//
  3641. // DispIntf: IADsPostalAddressDisp
  3642. // Flags: (4416) Dual OleAutomation Dispatchable
  3643. // GUID: {7ADECF29-4680-11D1-A3B4-00C04FB950DC}
  3644. // *********************************************************************//
  3645. {$ifdef SUPPORTS_DISPINTERFACE}
  3646. IADsPostalAddressDisp = dispinterface
  3647. ['{7ADECF29-4680-11D1-A3B4-00C04FB950DC}']
  3648. property PostalAddress: OleVariant dispid 2;
  3649. end;
  3650. {$endif}
  3651. // *********************************************************************//
  3652. // Interface: IADsBackLink
  3653. // Flags: (4416) Dual OleAutomation Dispatchable
  3654. // GUID: {FD1302BD-4080-11D1-A3AC-00C04FB950DC}
  3655. // *********************************************************************//
  3656. IADsBackLink = interface(IDispatch)
  3657. ['{FD1302BD-4080-11D1-A3AC-00C04FB950DC}']
  3658. function Get_RemoteID: Integer; safecall;
  3659. procedure Set_RemoteID(retval: Integer); safecall;
  3660. function Get_ObjectName: WideString; safecall;
  3661. procedure Set_ObjectName(const retval: WideString); safecall;
  3662. property RemoteID: Integer read Get_RemoteID write Set_RemoteID;
  3663. property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
  3664. end;
  3665. // *********************************************************************//
  3666. // DispIntf: IADsBackLinkDisp
  3667. // Flags: (4416) Dual OleAutomation Dispatchable
  3668. // GUID: {FD1302BD-4080-11D1-A3AC-00C04FB950DC}
  3669. // *********************************************************************//
  3670. {$ifdef SUPPORTS_DISPINTERFACE}
  3671. IADsBackLinkDisp = dispinterface
  3672. ['{FD1302BD-4080-11D1-A3AC-00C04FB950DC}']
  3673. property RemoteID: Integer dispid 2;
  3674. property ObjectName: WideString dispid 3;
  3675. end;
  3676. {$endif}
  3677. // *********************************************************************//
  3678. // Interface: IADsTypedName
  3679. // Flags: (4416) Dual OleAutomation Dispatchable
  3680. // GUID: {B371A349-4080-11D1-A3AC-00C04FB950DC}
  3681. // *********************************************************************//
  3682. IADsTypedName = interface(IDispatch)
  3683. ['{B371A349-4080-11D1-A3AC-00C04FB950DC}']
  3684. function Get_ObjectName: WideString; safecall;
  3685. procedure Set_ObjectName(const retval: WideString); safecall;
  3686. function Get_Level: Integer; safecall;
  3687. procedure Set_Level(retval: Integer); safecall;
  3688. function Get_Interval: Integer; safecall;
  3689. procedure Set_Interval(retval: Integer); safecall;
  3690. property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
  3691. property Level: Integer read Get_Level write Set_Level;
  3692. property Interval: Integer read Get_Interval write Set_Interval;
  3693. end;
  3694. // *********************************************************************//
  3695. // DispIntf: IADsTypedNameDisp
  3696. // Flags: (4416) Dual OleAutomation Dispatchable
  3697. // GUID: {B371A349-4080-11D1-A3AC-00C04FB950DC}
  3698. // *********************************************************************//
  3699. {$ifdef SUPPORTS_DISPINTERFACE}
  3700. IADsTypedNameDisp = dispinterface
  3701. ['{B371A349-4080-11D1-A3AC-00C04FB950DC}']
  3702. property ObjectName: WideString dispid 2;
  3703. property Level: Integer dispid 3;
  3704. property Interval: Integer dispid 4;
  3705. end;
  3706. {$endif}
  3707. // *********************************************************************//
  3708. // Interface: IADsHold
  3709. // Flags: (4416) Dual OleAutomation Dispatchable
  3710. // GUID: {B3EB3B37-4080-11D1-A3AC-00C04FB950DC}
  3711. // *********************************************************************//
  3712. IADsHold = interface(IDispatch)
  3713. ['{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}']
  3714. function Get_ObjectName: WideString; safecall;
  3715. procedure Set_ObjectName(const retval: WideString); safecall;
  3716. function Get_Amount: Integer; safecall;
  3717. procedure Set_Amount(retval: Integer); safecall;
  3718. property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
  3719. property Amount: Integer read Get_Amount write Set_Amount;
  3720. end;
  3721. // *********************************************************************//
  3722. // DispIntf: IADsHoldDisp
  3723. // Flags: (4416) Dual OleAutomation Dispatchable
  3724. // GUID: {B3EB3B37-4080-11D1-A3AC-00C04FB950DC}
  3725. // *********************************************************************//
  3726. {$ifdef SUPPORTS_DISPINTERFACE}
  3727. IADsHoldDisp = dispinterface
  3728. ['{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}']
  3729. property ObjectName: WideString dispid 2;
  3730. property Amount: Integer dispid 3;
  3731. end;
  3732. {$endif}
  3733. // *********************************************************************//
  3734. // Interface: IADsObjectOptions
  3735. // Flags: (4416) Dual OleAutomation Dispatchable
  3736. // GUID: {46F14FDA-232B-11D1-A808-00C04FD8D5A8}
  3737. // *********************************************************************//
  3738. IADsObjectOptions = interface(IDispatch)
  3739. ['{46F14FDA-232B-11D1-A808-00C04FD8D5A8}']
  3740. function GetOption(lnOption: Integer): OleVariant; safecall;
  3741. procedure SetOption(lnOption: Integer; vValue: OleVariant); safecall;
  3742. end;
  3743. // *********************************************************************//
  3744. // DispIntf: IADsObjectOptionsDisp
  3745. // Flags: (4416) Dual OleAutomation Dispatchable
  3746. // GUID: {46F14FDA-232B-11D1-A808-00C04FD8D5A8}
  3747. // *********************************************************************//
  3748. {$ifdef SUPPORTS_DISPINTERFACE}
  3749. IADsObjectOptionsDisp = dispinterface
  3750. ['{46F14FDA-232B-11D1-A808-00C04FD8D5A8}']
  3751. function GetOption(lnOption: Integer): OleVariant; dispid 2;
  3752. procedure SetOption(lnOption: Integer; vValue: OleVariant); dispid 3;
  3753. end;
  3754. {$endif}
  3755. // *********************************************************************//
  3756. // Interface: IADsPathname
  3757. // Flags: (4416) Dual OleAutomation Dispatchable
  3758. // GUID: {D592AED4-F420-11D0-A36E-00C04FB950DC}
  3759. // *********************************************************************//
  3760. IADsPathname = interface(IDispatch)
  3761. ['{D592AED4-F420-11D0-A36E-00C04FB950DC}']
  3762. procedure Set_(const bstrADsPath: WideString; lnSetType: Integer); safecall;
  3763. procedure SetDisplayType(lnDisplayType: Integer); safecall;
  3764. function Retrieve(lnFormatType: Integer): WideString; safecall;
  3765. function GetNumElements: Integer; safecall;
  3766. function GetElement(lnElementIndex: Integer): WideString; safecall;
  3767. procedure AddLeafElement(const bstrLeafElement: WideString); safecall;
  3768. procedure RemoveLeafElement; safecall;
  3769. function CopyPath: IDispatch; safecall;
  3770. function GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString; safecall;
  3771. function Get_EscapedMode: Integer; safecall;
  3772. procedure Set_EscapedMode(retval: Integer); safecall;
  3773. property EscapedMode: Integer read Get_EscapedMode write Set_EscapedMode;
  3774. end;
  3775. // *********************************************************************//
  3776. // DispIntf: IADsPathnameDisp
  3777. // Flags: (4416) Dual OleAutomation Dispatchable
  3778. // GUID: {D592AED4-F420-11D0-A36E-00C04FB950DC}
  3779. // *********************************************************************//
  3780. {$ifdef SUPPORTS_DISPINTERFACE}
  3781. IADsPathnameDisp = dispinterface
  3782. ['{D592AED4-F420-11D0-A36E-00C04FB950DC}']
  3783. procedure Set_(const bstrADsPath: WideString; lnSetType: Integer); dispid 2;
  3784. procedure SetDisplayType(lnDisplayType: Integer); dispid 3;
  3785. function Retrieve(lnFormatType: Integer): WideString; dispid 4;
  3786. function GetNumElements: Integer; dispid 5;
  3787. function GetElement(lnElementIndex: Integer): WideString; dispid 6;
  3788. procedure AddLeafElement(const bstrLeafElement: WideString); dispid 7;
  3789. procedure RemoveLeafElement; dispid 8;
  3790. function CopyPath: IDispatch; dispid 9;
  3791. function GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString; dispid 10;
  3792. property EscapedMode: Integer dispid 11;
  3793. end;
  3794. {$endif}
  3795. // *********************************************************************//
  3796. // Interface: IADsADSystemInfo
  3797. // Flags: (4416) Dual OleAutomation Dispatchable
  3798. // GUID: {5BB11929-AFD1-11D2-9CB9-0000F87A369E}
  3799. // *********************************************************************//
  3800. IADsADSystemInfo = interface(IDispatch)
  3801. ['{5BB11929-AFD1-11D2-9CB9-0000F87A369E}']
  3802. function Get_UserName: WideString; safecall;
  3803. function Get_ComputerName: WideString; safecall;
  3804. function Get_SiteName: WideString; safecall;
  3805. function Get_DomainShortName: WideString; safecall;
  3806. function Get_DomainDNSName: WideString; safecall;
  3807. function Get_ForestDNSName: WideString; safecall;
  3808. function Get_PDCRoleOwner: WideString; safecall;
  3809. function Get_SchemaRoleOwner: WideString; safecall;
  3810. function Get_IsNativeMode: WordBool; safecall;
  3811. function GetAnyDCName: WideString; safecall;
  3812. function GetDCSiteName(const szServer: WideString): WideString; safecall;
  3813. procedure RefreshSchemaCache; safecall;
  3814. function GetTrees: OleVariant; safecall;
  3815. property UserName: WideString read Get_UserName;
  3816. property ComputerName: WideString read Get_ComputerName;
  3817. property SiteName: WideString read Get_SiteName;
  3818. property DomainShortName: WideString read Get_DomainShortName;
  3819. property DomainDNSName: WideString read Get_DomainDNSName;
  3820. property ForestDNSName: WideString read Get_ForestDNSName;
  3821. property PDCRoleOwner: WideString read Get_PDCRoleOwner;
  3822. property SchemaRoleOwner: WideString read Get_SchemaRoleOwner;
  3823. property IsNativeMode: WordBool read Get_IsNativeMode;
  3824. end;
  3825. // *********************************************************************//
  3826. // DispIntf: IADsADSystemInfoDisp
  3827. // Flags: (4416) Dual OleAutomation Dispatchable
  3828. // GUID: {5BB11929-AFD1-11D2-9CB9-0000F87A369E}
  3829. // *********************************************************************//
  3830. {$ifdef SUPPORTS_DISPINTERFACE}
  3831. IADsADSystemInfoDisp = dispinterface
  3832. ['{5BB11929-AFD1-11D2-9CB9-0000F87A369E}']
  3833. property UserName: WideString readonly dispid 2;
  3834. property ComputerName: WideString readonly dispid 3;
  3835. property SiteName: WideString readonly dispid 4;
  3836. property DomainShortName: WideString readonly dispid 5;
  3837. property DomainDNSName: WideString readonly dispid 6;
  3838. property ForestDNSName: WideString readonly dispid 7;
  3839. property PDCRoleOwner: WideString readonly dispid 8;
  3840. property SchemaRoleOwner: WideString readonly dispid 9;
  3841. property IsNativeMode: WordBool readonly dispid 10;
  3842. function GetAnyDCName: WideString; dispid 11;
  3843. function GetDCSiteName(const szServer: WideString): WideString; dispid 12;
  3844. procedure RefreshSchemaCache; dispid 13;
  3845. function GetTrees: OleVariant; dispid 14;
  3846. end;
  3847. {$endif}
  3848. // *********************************************************************//
  3849. // Interface: IADsWinNTSystemInfo
  3850. // Flags: (4416) Dual OleAutomation Dispatchable
  3851. // GUID: {6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}
  3852. // *********************************************************************//
  3853. IADsWinNTSystemInfo = interface(IDispatch)
  3854. ['{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}']
  3855. function Get_UserName: WideString; safecall;
  3856. function Get_ComputerName: WideString; safecall;
  3857. function Get_DomainName: WideString; safecall;
  3858. function Get_PDC: WideString; safecall;
  3859. property UserName: WideString read Get_UserName;
  3860. property ComputerName: WideString read Get_ComputerName;
  3861. property DomainName: WideString read Get_DomainName;
  3862. property PDC: WideString read Get_PDC;
  3863. end;
  3864. // *********************************************************************//
  3865. // DispIntf: IADsWinNTSystemInfoDisp
  3866. // Flags: (4416) Dual OleAutomation Dispatchable
  3867. // GUID: {6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}
  3868. // *********************************************************************//
  3869. {$ifdef SUPPORTS_DISPINTERFACE}
  3870. IADsWinNTSystemInfoDisp = dispinterface
  3871. ['{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}']
  3872. property UserName: WideString readonly dispid 2;
  3873. property ComputerName: WideString readonly dispid 3;
  3874. property DomainName: WideString readonly dispid 4;
  3875. property PDC: WideString readonly dispid 5;
  3876. end;
  3877. {$endif}
  3878. // *********************************************************************//
  3879. // Interface: IADsDNWithBinary
  3880. // Flags: (4416) Dual OleAutomation Dispatchable
  3881. // GUID: {7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}
  3882. // *********************************************************************//
  3883. IADsDNWithBinary = interface(IDispatch)
  3884. ['{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}']
  3885. function Get_BinaryValue: OleVariant; safecall;
  3886. procedure Set_BinaryValue(retval: OleVariant); safecall;
  3887. function Get_DNString: WideString; safecall;
  3888. procedure Set_DNString(const retval: WideString); safecall;
  3889. property BinaryValue: OleVariant read Get_BinaryValue write Set_BinaryValue;
  3890. property DNString: WideString read Get_DNString write Set_DNString;
  3891. end;
  3892. // *********************************************************************//
  3893. // DispIntf: IADsDNWithBinaryDisp
  3894. // Flags: (4416) Dual OleAutomation Dispatchable
  3895. // GUID: {7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}
  3896. // *********************************************************************//
  3897. {$ifdef SUPPORTS_DISPINTERFACE}
  3898. IADsDNWithBinaryDisp = dispinterface
  3899. ['{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}']
  3900. property BinaryValue: OleVariant dispid 2;
  3901. property DNString: WideString dispid 3;
  3902. end;
  3903. {$endif}
  3904. // *********************************************************************//
  3905. // Interface: IADsDNWithString
  3906. // Flags: (4416) Dual OleAutomation Dispatchable
  3907. // GUID: {370DF02E-F934-11D2-BA96-00C04FB6D0D1}
  3908. // *********************************************************************//
  3909. IADsDNWithString = interface(IDispatch)
  3910. ['{370DF02E-F934-11D2-BA96-00C04FB6D0D1}']
  3911. function Get_StringValue: WideString; safecall;
  3912. procedure Set_StringValue(const retval: WideString); safecall;
  3913. function Get_DNString: WideString; safecall;
  3914. procedure Set_DNString(const retval: WideString); safecall;
  3915. property StringValue: WideString read Get_StringValue write Set_StringValue;
  3916. property DNString: WideString read Get_DNString write Set_DNString;
  3917. end;
  3918. // *********************************************************************//
  3919. // DispIntf: IADsDNWithStringDisp
  3920. // Flags: (4416) Dual OleAutomation Dispatchable
  3921. // GUID: {370DF02E-F934-11D2-BA96-00C04FB6D0D1}
  3922. // *********************************************************************//
  3923. {$ifdef SUPPORTS_DISPINTERFACE}
  3924. IADsDNWithStringDisp = dispinterface
  3925. ['{370DF02E-F934-11D2-BA96-00C04FB6D0D1}']
  3926. property StringValue: WideString dispid 2;
  3927. property DNString: WideString dispid 3;
  3928. end;
  3929. {$endif}
  3930. // *********************************************************************//
  3931. // The Class CoPropertyEntry provides a Create and CreateRemote method to
  3932. // create instances of the default interface IADsPropertyEntry exposed by
  3933. // the CoClass PropertyEntry. The functions are intended to be used by
  3934. // clients wishing to automate the CoClass objects exposed by the
  3935. // server of this typelibrary.
  3936. // *********************************************************************//
  3937. CoPropertyEntry = class
  3938. class function Create: IADsPropertyEntry;
  3939. class function CreateRemote(const MachineName: string): IADsPropertyEntry;
  3940. end;
  3941. // *********************************************************************//
  3942. // OLE Server Proxy class declaration
  3943. // Server Object : TPropertyEntry
  3944. // Help String :
  3945. // Default Interface: IADsPropertyEntry
  3946. // Def. Intf. DISP? : No
  3947. // Event Interface:
  3948. // TypeFlags : (2) CanCreate
  3949. // *********************************************************************//
  3950. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  3951. TPropertyEntryProperties= class;
  3952. {$ENDIF}
  3953. TPropertyEntry = class(TOleServer)
  3954. private
  3955. FIntf: IADsPropertyEntry;
  3956. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  3957. FProps: TPropertyEntryProperties;
  3958. function GetServerProperties: TPropertyEntryProperties;
  3959. {$ENDIF}
  3960. function GetDefaultInterface: IADsPropertyEntry;
  3961. protected
  3962. procedure InitServerData; override;
  3963. function Get_Name: WideString;
  3964. procedure Set_Name(const retval: WideString);
  3965. function Get_ADsType: Integer;
  3966. procedure Set_ADsType(retval: Integer);
  3967. function Get_ControlCode: Integer;
  3968. procedure Set_ControlCode(retval: Integer);
  3969. function Get_Values: OleVariant;
  3970. procedure Set_Values(retval: OleVariant);
  3971. public
  3972. constructor Create(AOwner: TComponent); override;
  3973. destructor Destroy; override;
  3974. procedure Connect; override;
  3975. procedure ConnectTo(svrIntf: IADsPropertyEntry);
  3976. procedure Disconnect; override;
  3977. procedure Clear;
  3978. property DefaultInterface: IADsPropertyEntry read GetDefaultInterface;
  3979. property Values: OleVariant read Get_Values write Set_Values;
  3980. property Name: WideString read Get_Name write Set_Name;
  3981. property ADsType: Integer read Get_ADsType write Set_ADsType;
  3982. property ControlCode: Integer read Get_ControlCode write Set_ControlCode;
  3983. published
  3984. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  3985. property Server: TPropertyEntryProperties read GetServerProperties;
  3986. {$ENDIF}
  3987. end;
  3988. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  3989. // *********************************************************************//
  3990. // OLE Server Properties Proxy Class
  3991. // Server Object : TPropertyEntry
  3992. // (This object is used by the IDE's Property Inspector to allow editing
  3993. // of the properties of this server)
  3994. // *********************************************************************//
  3995. TPropertyEntryProperties = class(TPersistent)
  3996. private
  3997. FServer: TPropertyEntry;
  3998. function GetDefaultInterface: IADsPropertyEntry;
  3999. constructor Create(AServer: TPropertyEntry);
  4000. protected
  4001. function Get_Name: WideString;
  4002. procedure Set_Name(const retval: WideString);
  4003. function Get_ADsType: Integer;
  4004. procedure Set_ADsType(retval: Integer);
  4005. function Get_ControlCode: Integer;
  4006. procedure Set_ControlCode(retval: Integer);
  4007. function Get_Values: OleVariant;
  4008. procedure Set_Values(retval: OleVariant);
  4009. public
  4010. property DefaultInterface: IADsPropertyEntry read GetDefaultInterface;
  4011. published
  4012. property Name: WideString read Get_Name write Set_Name;
  4013. property ADsType: Integer read Get_ADsType write Set_ADsType;
  4014. property ControlCode: Integer read Get_ControlCode write Set_ControlCode;
  4015. end;
  4016. {$ENDIF}
  4017. // *********************************************************************//
  4018. // The Class CoPropertyValue provides a Create and CreateRemote method to
  4019. // create instances of the default interface IADsPropertyValue exposed by
  4020. // the CoClass PropertyValue. The functions are intended to be used by
  4021. // clients wishing to automate the CoClass objects exposed by the
  4022. // server of this typelibrary.
  4023. // *********************************************************************//
  4024. CoPropertyValue = class
  4025. class function Create: IADsPropertyValue;
  4026. class function CreateRemote(const MachineName: string): IADsPropertyValue;
  4027. end;
  4028. // *********************************************************************//
  4029. // OLE Server Proxy class declaration
  4030. // Server Object : TPropertyValue
  4031. // Help String :
  4032. // Default Interface: IADsPropertyValue
  4033. // Def. Intf. DISP? : No
  4034. // Event Interface:
  4035. // TypeFlags : (2) CanCreate
  4036. // *********************************************************************//
  4037. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4038. TPropertyValueProperties= class;
  4039. {$ENDIF}
  4040. TPropertyValue = class(TOleServer)
  4041. private
  4042. FIntf: IADsPropertyValue;
  4043. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4044. FProps: TPropertyValueProperties;
  4045. function GetServerProperties: TPropertyValueProperties;
  4046. {$ENDIF}
  4047. function GetDefaultInterface: IADsPropertyValue;
  4048. protected
  4049. procedure InitServerData; override;
  4050. function Get_ADsType: Integer;
  4051. procedure Set_ADsType(retval: Integer);
  4052. function Get_DNString: WideString;
  4053. procedure Set_DNString(const retval: WideString);
  4054. function Get_CaseExactString: WideString;
  4055. procedure Set_CaseExactString(const retval: WideString);
  4056. function Get_CaseIgnoreString: WideString;
  4057. procedure Set_CaseIgnoreString(const retval: WideString);
  4058. function Get_PrintableString: WideString;
  4059. procedure Set_PrintableString(const retval: WideString);
  4060. function Get_NumericString: WideString;
  4061. procedure Set_NumericString(const retval: WideString);
  4062. function Get_Boolean: Integer;
  4063. procedure Set_Boolean(retval: Integer);
  4064. function Get_Integer: Integer;
  4065. procedure Set_Integer(retval: Integer);
  4066. function Get_OctetString: OleVariant;
  4067. procedure Set_OctetString(retval: OleVariant);
  4068. function Get_SecurityDescriptor: IDispatch;
  4069. procedure Set_SecurityDescriptor(const retval: IDispatch);
  4070. function Get_LargeInteger: IDispatch;
  4071. procedure Set_LargeInteger(const retval: IDispatch);
  4072. function Get_UTCTime: TDateTime;
  4073. procedure Set_UTCTime(retval: TDateTime);
  4074. public
  4075. constructor Create(AOwner: TComponent); override;
  4076. destructor Destroy; override;
  4077. procedure Connect; override;
  4078. procedure ConnectTo(svrIntf: IADsPropertyValue);
  4079. procedure Disconnect; override;
  4080. procedure Clear;
  4081. property DefaultInterface: IADsPropertyValue read GetDefaultInterface;
  4082. property OctetString: OleVariant read Get_OctetString write Set_OctetString;
  4083. property SecurityDescriptor: IDispatch read Get_SecurityDescriptor write Set_SecurityDescriptor;
  4084. property LargeInteger: IDispatch read Get_LargeInteger write Set_LargeInteger;
  4085. property ADsType: Integer read Get_ADsType write Set_ADsType;
  4086. property DNString: WideString read Get_DNString write Set_DNString;
  4087. property CaseExactString: WideString read Get_CaseExactString write Set_CaseExactString;
  4088. property CaseIgnoreString: WideString read Get_CaseIgnoreString write Set_CaseIgnoreString;
  4089. property PrintableString: WideString read Get_PrintableString write Set_PrintableString;
  4090. property NumericString: WideString read Get_NumericString write Set_NumericString;
  4091. property Boolean: Integer read Get_Boolean write Set_Boolean;
  4092. property Integer: Integer read Get_Integer write Set_Integer;
  4093. property UTCTime: TDateTime read Get_UTCTime write Set_UTCTime;
  4094. published
  4095. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4096. property Server: TPropertyValueProperties read GetServerProperties;
  4097. {$ENDIF}
  4098. end;
  4099. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4100. // *********************************************************************//
  4101. // OLE Server Properties Proxy Class
  4102. // Server Object : TPropertyValue
  4103. // (This object is used by the IDE's Property Inspector to allow editing
  4104. // of the properties of this server)
  4105. // *********************************************************************//
  4106. TPropertyValueProperties = class(TPersistent)
  4107. private
  4108. FServer: TPropertyValue;
  4109. function GetDefaultInterface: IADsPropertyValue;
  4110. constructor Create(AServer: TPropertyValue);
  4111. protected
  4112. function Get_ADsType: Integer;
  4113. procedure Set_ADsType(retval: Integer);
  4114. function Get_DNString: WideString;
  4115. procedure Set_DNString(const retval: WideString);
  4116. function Get_CaseExactString: WideString;
  4117. procedure Set_CaseExactString(const retval: WideString);
  4118. function Get_CaseIgnoreString: WideString;
  4119. procedure Set_CaseIgnoreString(const retval: WideString);
  4120. function Get_PrintableString: WideString;
  4121. procedure Set_PrintableString(const retval: WideString);
  4122. function Get_NumericString: WideString;
  4123. procedure Set_NumericString(const retval: WideString);
  4124. function Get_Boolean: Integer;
  4125. procedure Set_Boolean(retval: Integer);
  4126. function Get_Integer: Integer;
  4127. procedure Set_Integer(retval: Integer);
  4128. function Get_OctetString: OleVariant;
  4129. procedure Set_OctetString(retval: OleVariant);
  4130. function Get_SecurityDescriptor: IDispatch;
  4131. procedure Set_SecurityDescriptor(const retval: IDispatch);
  4132. function Get_LargeInteger: IDispatch;
  4133. procedure Set_LargeInteger(const retval: IDispatch);
  4134. function Get_UTCTime: TDateTime;
  4135. procedure Set_UTCTime(retval: TDateTime);
  4136. public
  4137. property DefaultInterface: IADsPropertyValue read GetDefaultInterface;
  4138. published
  4139. property ADsType: Integer read Get_ADsType write Set_ADsType;
  4140. property DNString: WideString read Get_DNString write Set_DNString;
  4141. property CaseExactString: WideString read Get_CaseExactString write Set_CaseExactString;
  4142. property CaseIgnoreString: WideString read Get_CaseIgnoreString write Set_CaseIgnoreString;
  4143. property PrintableString: WideString read Get_PrintableString write Set_PrintableString;
  4144. property NumericString: WideString read Get_NumericString write Set_NumericString;
  4145. property Boolean: Integer read Get_Boolean write Set_Boolean;
  4146. property Integer: Integer read Get_Integer write Set_Integer;
  4147. property UTCTime: TDateTime read Get_UTCTime write Set_UTCTime;
  4148. end;
  4149. {$ENDIF}
  4150. // *********************************************************************//
  4151. // The Class CoAccessControlEntry provides a Create and CreateRemote method to
  4152. // create instances of the default interface IADsAccessControlEntry exposed by
  4153. // the CoClass AccessControlEntry. The functions are intended to be used by
  4154. // clients wishing to automate the CoClass objects exposed by the
  4155. // server of this typelibrary.
  4156. // *********************************************************************//
  4157. CoAccessControlEntry = class
  4158. class function Create: IADsAccessControlEntry;
  4159. class function CreateRemote(const MachineName: string): IADsAccessControlEntry;
  4160. end;
  4161. // *********************************************************************//
  4162. // OLE Server Proxy class declaration
  4163. // Server Object : TAccessControlEntry
  4164. // Help String :
  4165. // Default Interface: IADsAccessControlEntry
  4166. // Def. Intf. DISP? : No
  4167. // Event Interface:
  4168. // TypeFlags : (2) CanCreate
  4169. // *********************************************************************//
  4170. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4171. TAccessControlEntryProperties= class;
  4172. {$ENDIF}
  4173. TAccessControlEntry = class(TOleServer)
  4174. private
  4175. FIntf: IADsAccessControlEntry;
  4176. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4177. FProps: TAccessControlEntryProperties;
  4178. function GetServerProperties: TAccessControlEntryProperties;
  4179. {$ENDIF}
  4180. function GetDefaultInterface: IADsAccessControlEntry;
  4181. protected
  4182. procedure InitServerData; override;
  4183. function Get_AccessMask: Integer;
  4184. procedure Set_AccessMask(retval: Integer);
  4185. function Get_AceType: Integer;
  4186. procedure Set_AceType(retval: Integer);
  4187. function Get_AceFlags: Integer;
  4188. procedure Set_AceFlags(retval: Integer);
  4189. function Get_Flags: Integer;
  4190. procedure Set_Flags(retval: Integer);
  4191. function Get_ObjectType: WideString;
  4192. procedure Set_ObjectType(const retval: WideString);
  4193. function Get_InheritedObjectType: WideString;
  4194. procedure Set_InheritedObjectType(const retval: WideString);
  4195. function Get_Trustee: WideString;
  4196. procedure Set_Trustee(const retval: WideString);
  4197. public
  4198. constructor Create(AOwner: TComponent); override;
  4199. destructor Destroy; override;
  4200. procedure Connect; override;
  4201. procedure ConnectTo(svrIntf: IADsAccessControlEntry);
  4202. procedure Disconnect; override;
  4203. property DefaultInterface: IADsAccessControlEntry read GetDefaultInterface;
  4204. property AccessMask: Integer read Get_AccessMask write Set_AccessMask;
  4205. property AceType: Integer read Get_AceType write Set_AceType;
  4206. property AceFlags: Integer read Get_AceFlags write Set_AceFlags;
  4207. property Flags: Integer read Get_Flags write Set_Flags;
  4208. property ObjectType: WideString read Get_ObjectType write Set_ObjectType;
  4209. property InheritedObjectType: WideString read Get_InheritedObjectType write Set_InheritedObjectType;
  4210. property Trustee: WideString read Get_Trustee write Set_Trustee;
  4211. published
  4212. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4213. property Server: TAccessControlEntryProperties read GetServerProperties;
  4214. {$ENDIF}
  4215. end;
  4216. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4217. // *********************************************************************//
  4218. // OLE Server Properties Proxy Class
  4219. // Server Object : TAccessControlEntry
  4220. // (This object is used by the IDE's Property Inspector to allow editing
  4221. // of the properties of this server)
  4222. // *********************************************************************//
  4223. TAccessControlEntryProperties = class(TPersistent)
  4224. private
  4225. FServer: TAccessControlEntry;
  4226. function GetDefaultInterface: IADsAccessControlEntry;
  4227. constructor Create(AServer: TAccessControlEntry);
  4228. protected
  4229. function Get_AccessMask: Integer;
  4230. procedure Set_AccessMask(retval: Integer);
  4231. function Get_AceType: Integer;
  4232. procedure Set_AceType(retval: Integer);
  4233. function Get_AceFlags: Integer;
  4234. procedure Set_AceFlags(retval: Integer);
  4235. function Get_Flags: Integer;
  4236. procedure Set_Flags(retval: Integer);
  4237. function Get_ObjectType: WideString;
  4238. procedure Set_ObjectType(const retval: WideString);
  4239. function Get_InheritedObjectType: WideString;
  4240. procedure Set_InheritedObjectType(const retval: WideString);
  4241. function Get_Trustee: WideString;
  4242. procedure Set_Trustee(const retval: WideString);
  4243. public
  4244. property DefaultInterface: IADsAccessControlEntry read GetDefaultInterface;
  4245. published
  4246. property AccessMask: Integer read Get_AccessMask write Set_AccessMask;
  4247. property AceType: Integer read Get_AceType write Set_AceType;
  4248. property AceFlags: Integer read Get_AceFlags write Set_AceFlags;
  4249. property Flags: Integer read Get_Flags write Set_Flags;
  4250. property ObjectType: WideString read Get_ObjectType write Set_ObjectType;
  4251. property InheritedObjectType: WideString read Get_InheritedObjectType write Set_InheritedObjectType;
  4252. property Trustee: WideString read Get_Trustee write Set_Trustee;
  4253. end;
  4254. {$ENDIF}
  4255. // *********************************************************************//
  4256. // The Class CoAccessControlList provides a Create and CreateRemote method to
  4257. // create instances of the default interface IADsAccessControlList exposed by
  4258. // the CoClass AccessControlList. The functions are intended to be used by
  4259. // clients wishing to automate the CoClass objects exposed by the
  4260. // server of this typelibrary.
  4261. // *********************************************************************//
  4262. CoAccessControlList = class
  4263. class function Create: IADsAccessControlList;
  4264. class function CreateRemote(const MachineName: string): IADsAccessControlList;
  4265. end;
  4266. // *********************************************************************//
  4267. // OLE Server Proxy class declaration
  4268. // Server Object : TAccessControlList
  4269. // Help String :
  4270. // Default Interface: IADsAccessControlList
  4271. // Def. Intf. DISP? : No
  4272. // Event Interface:
  4273. // TypeFlags : (2) CanCreate
  4274. // *********************************************************************//
  4275. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4276. TAccessControlListProperties= class;
  4277. {$ENDIF}
  4278. TAccessControlList = class(TOleServer)
  4279. private
  4280. FIntf: IADsAccessControlList;
  4281. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4282. FProps: TAccessControlListProperties;
  4283. function GetServerProperties: TAccessControlListProperties;
  4284. {$ENDIF}
  4285. function GetDefaultInterface: IADsAccessControlList;
  4286. protected
  4287. procedure InitServerData; override;
  4288. function Get_AclRevision: Integer;
  4289. procedure Set_AclRevision(retval: Integer);
  4290. function Get_AceCount: Integer;
  4291. procedure Set_AceCount(retval: Integer);
  4292. public
  4293. constructor Create(AOwner: TComponent); override;
  4294. destructor Destroy; override;
  4295. procedure Connect; override;
  4296. procedure ConnectTo(svrIntf: IADsAccessControlList);
  4297. procedure Disconnect; override;
  4298. procedure AddAce(const pAccessControlEntry: IDispatch);
  4299. procedure RemoveAce(const pAccessControlEntry: IDispatch);
  4300. function CopyAccessList: IDispatch;
  4301. property DefaultInterface: IADsAccessControlList read GetDefaultInterface;
  4302. property AclRevision: Integer read Get_AclRevision write Set_AclRevision;
  4303. property AceCount: Integer read Get_AceCount write Set_AceCount;
  4304. published
  4305. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4306. property Server: TAccessControlListProperties read GetServerProperties;
  4307. {$ENDIF}
  4308. end;
  4309. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4310. // *********************************************************************//
  4311. // OLE Server Properties Proxy Class
  4312. // Server Object : TAccessControlList
  4313. // (This object is used by the IDE's Property Inspector to allow editing
  4314. // of the properties of this server)
  4315. // *********************************************************************//
  4316. TAccessControlListProperties = class(TPersistent)
  4317. private
  4318. FServer: TAccessControlList;
  4319. function GetDefaultInterface: IADsAccessControlList;
  4320. constructor Create(AServer: TAccessControlList);
  4321. protected
  4322. function Get_AclRevision: Integer;
  4323. procedure Set_AclRevision(retval: Integer);
  4324. function Get_AceCount: Integer;
  4325. procedure Set_AceCount(retval: Integer);
  4326. public
  4327. property DefaultInterface: IADsAccessControlList read GetDefaultInterface;
  4328. published
  4329. property AclRevision: Integer read Get_AclRevision write Set_AclRevision;
  4330. property AceCount: Integer read Get_AceCount write Set_AceCount;
  4331. end;
  4332. {$ENDIF}
  4333. // *********************************************************************//
  4334. // The Class CoSecurityDescriptor provides a Create and CreateRemote method to
  4335. // create instances of the default interface IADsSecurityDescriptor exposed by
  4336. // the CoClass SecurityDescriptor. The functions are intended to be used by
  4337. // clients wishing to automate the CoClass objects exposed by the
  4338. // server of this typelibrary.
  4339. // *********************************************************************//
  4340. CoSecurityDescriptor = class
  4341. class function Create: IADsSecurityDescriptor;
  4342. class function CreateRemote(const MachineName: string): IADsSecurityDescriptor;
  4343. end;
  4344. // *********************************************************************//
  4345. // OLE Server Proxy class declaration
  4346. // Server Object : TSecurityDescriptor
  4347. // Help String :
  4348. // Default Interface: IADsSecurityDescriptor
  4349. // Def. Intf. DISP? : No
  4350. // Event Interface:
  4351. // TypeFlags : (2) CanCreate
  4352. // *********************************************************************//
  4353. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4354. TSecurityDescriptorProperties= class;
  4355. {$ENDIF}
  4356. TSecurityDescriptor = class(TOleServer)
  4357. private
  4358. FIntf: IADsSecurityDescriptor;
  4359. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4360. FProps: TSecurityDescriptorProperties;
  4361. function GetServerProperties: TSecurityDescriptorProperties;
  4362. {$ENDIF}
  4363. function GetDefaultInterface: IADsSecurityDescriptor;
  4364. protected
  4365. procedure InitServerData; override;
  4366. function Get_Revision: Integer;
  4367. procedure Set_Revision(retval: Integer);
  4368. function Get_Control: Integer;
  4369. procedure Set_Control(retval: Integer);
  4370. function Get_Owner: WideString;
  4371. procedure Set_Owner(const retval: WideString);
  4372. function Get_OwnerDefaulted: WordBool;
  4373. procedure Set_OwnerDefaulted(retval: WordBool);
  4374. function Get_Group: WideString;
  4375. procedure Set_Group(const retval: WideString);
  4376. function Get_GroupDefaulted: WordBool;
  4377. procedure Set_GroupDefaulted(retval: WordBool);
  4378. function Get_DiscretionaryAcl: IDispatch;
  4379. procedure Set_DiscretionaryAcl(const retval: IDispatch);
  4380. function Get_DaclDefaulted: WordBool;
  4381. procedure Set_DaclDefaulted(retval: WordBool);
  4382. function Get_SystemAcl: IDispatch;
  4383. procedure Set_SystemAcl(const retval: IDispatch);
  4384. function Get_SaclDefaulted: WordBool;
  4385. procedure Set_SaclDefaulted(retval: WordBool);
  4386. public
  4387. constructor Create(AOwner: TComponent); override;
  4388. destructor Destroy; override;
  4389. procedure Connect; override;
  4390. procedure ConnectTo(svrIntf: IADsSecurityDescriptor);
  4391. procedure Disconnect; override;
  4392. function CopySecurityDescriptor: IDispatch;
  4393. property DefaultInterface: IADsSecurityDescriptor read GetDefaultInterface;
  4394. property DiscretionaryAcl: IDispatch read Get_DiscretionaryAcl write Set_DiscretionaryAcl;
  4395. property SystemAcl: IDispatch read Get_SystemAcl write Set_SystemAcl;
  4396. property Revision: Integer read Get_Revision write Set_Revision;
  4397. property Control: Integer read Get_Control write Set_Control;
  4398. property Owner: WideString read Get_Owner write Set_Owner;
  4399. property OwnerDefaulted: WordBool read Get_OwnerDefaulted write Set_OwnerDefaulted;
  4400. property Group: WideString read Get_Group write Set_Group;
  4401. property GroupDefaulted: WordBool read Get_GroupDefaulted write Set_GroupDefaulted;
  4402. property DaclDefaulted: WordBool read Get_DaclDefaulted write Set_DaclDefaulted;
  4403. property SaclDefaulted: WordBool read Get_SaclDefaulted write Set_SaclDefaulted;
  4404. published
  4405. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4406. property Server: TSecurityDescriptorProperties read GetServerProperties;
  4407. {$ENDIF}
  4408. end;
  4409. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4410. // *********************************************************************//
  4411. // OLE Server Properties Proxy Class
  4412. // Server Object : TSecurityDescriptor
  4413. // (This object is used by the IDE's Property Inspector to allow editing
  4414. // of the properties of this server)
  4415. // *********************************************************************//
  4416. TSecurityDescriptorProperties = class(TPersistent)
  4417. private
  4418. FServer: TSecurityDescriptor;
  4419. function GetDefaultInterface: IADsSecurityDescriptor;
  4420. constructor Create(AServer: TSecurityDescriptor);
  4421. protected
  4422. function Get_Revision: Integer;
  4423. procedure Set_Revision(retval: Integer);
  4424. function Get_Control: Integer;
  4425. procedure Set_Control(retval: Integer);
  4426. function Get_Owner: WideString;
  4427. procedure Set_Owner(const retval: WideString);
  4428. function Get_OwnerDefaulted: WordBool;
  4429. procedure Set_OwnerDefaulted(retval: WordBool);
  4430. function Get_Group: WideString;
  4431. procedure Set_Group(const retval: WideString);
  4432. function Get_GroupDefaulted: WordBool;
  4433. procedure Set_GroupDefaulted(retval: WordBool);
  4434. function Get_DiscretionaryAcl: IDispatch;
  4435. procedure Set_DiscretionaryAcl(const retval: IDispatch);
  4436. function Get_DaclDefaulted: WordBool;
  4437. procedure Set_DaclDefaulted(retval: WordBool);
  4438. function Get_SystemAcl: IDispatch;
  4439. procedure Set_SystemAcl(const retval: IDispatch);
  4440. function Get_SaclDefaulted: WordBool;
  4441. procedure Set_SaclDefaulted(retval: WordBool);
  4442. public
  4443. property DefaultInterface: IADsSecurityDescriptor read GetDefaultInterface;
  4444. published
  4445. property Revision: Integer read Get_Revision write Set_Revision;
  4446. property Control: Integer read Get_Control write Set_Control;
  4447. property Owner: WideString read Get_Owner write Set_Owner;
  4448. property OwnerDefaulted: WordBool read Get_OwnerDefaulted write Set_OwnerDefaulted;
  4449. property Group: WideString read Get_Group write Set_Group;
  4450. property GroupDefaulted: WordBool read Get_GroupDefaulted write Set_GroupDefaulted;
  4451. property DaclDefaulted: WordBool read Get_DaclDefaulted write Set_DaclDefaulted;
  4452. property SaclDefaulted: WordBool read Get_SaclDefaulted write Set_SaclDefaulted;
  4453. end;
  4454. {$ENDIF}
  4455. // *********************************************************************//
  4456. // The Class CoLargeInteger provides a Create and CreateRemote method to
  4457. // create instances of the default interface IADsLargeInteger exposed by
  4458. // the CoClass LargeInteger. The functions are intended to be used by
  4459. // clients wishing to automate the CoClass objects exposed by the
  4460. // server of this typelibrary.
  4461. // *********************************************************************//
  4462. CoLargeInteger = class
  4463. class function Create: IADsLargeInteger;
  4464. class function CreateRemote(const MachineName: string): IADsLargeInteger;
  4465. end;
  4466. // *********************************************************************//
  4467. // OLE Server Proxy class declaration
  4468. // Server Object : TLargeInteger
  4469. // Help String :
  4470. // Default Interface: IADsLargeInteger
  4471. // Def. Intf. DISP? : No
  4472. // Event Interface:
  4473. // TypeFlags : (2) CanCreate
  4474. // *********************************************************************//
  4475. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4476. TLargeIntegerProperties= class;
  4477. {$ENDIF}
  4478. TLargeInteger = class(TOleServer)
  4479. private
  4480. FIntf: IADsLargeInteger;
  4481. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4482. FProps: TLargeIntegerProperties;
  4483. function GetServerProperties: TLargeIntegerProperties;
  4484. {$ENDIF}
  4485. function GetDefaultInterface: IADsLargeInteger;
  4486. protected
  4487. procedure InitServerData; override;
  4488. function Get_HighPart: Integer;
  4489. procedure Set_HighPart(retval: Integer);
  4490. function Get_LowPart: Integer;
  4491. procedure Set_LowPart(retval: Integer);
  4492. public
  4493. constructor Create(AOwner: TComponent); override;
  4494. destructor Destroy; override;
  4495. procedure Connect; override;
  4496. procedure ConnectTo(svrIntf: IADsLargeInteger);
  4497. procedure Disconnect; override;
  4498. property DefaultInterface: IADsLargeInteger read GetDefaultInterface;
  4499. property HighPart: Integer read Get_HighPart write Set_HighPart;
  4500. property LowPart: Integer read Get_LowPart write Set_LowPart;
  4501. published
  4502. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4503. property Server: TLargeIntegerProperties read GetServerProperties;
  4504. {$ENDIF}
  4505. end;
  4506. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4507. // *********************************************************************//
  4508. // OLE Server Properties Proxy Class
  4509. // Server Object : TLargeInteger
  4510. // (This object is used by the IDE's Property Inspector to allow editing
  4511. // of the properties of this server)
  4512. // *********************************************************************//
  4513. TLargeIntegerProperties = class(TPersistent)
  4514. private
  4515. FServer: TLargeInteger;
  4516. function GetDefaultInterface: IADsLargeInteger;
  4517. constructor Create(AServer: TLargeInteger);
  4518. protected
  4519. function Get_HighPart: Integer;
  4520. procedure Set_HighPart(retval: Integer);
  4521. function Get_LowPart: Integer;
  4522. procedure Set_LowPart(retval: Integer);
  4523. public
  4524. property DefaultInterface: IADsLargeInteger read GetDefaultInterface;
  4525. published
  4526. property HighPart: Integer read Get_HighPart write Set_HighPart;
  4527. property LowPart: Integer read Get_LowPart write Set_LowPart;
  4528. end;
  4529. {$ENDIF}
  4530. // *********************************************************************//
  4531. // The Class CoNameTranslate provides a Create and CreateRemote method to
  4532. // create instances of the default interface IADsNameTranslate exposed by
  4533. // the CoClass NameTranslate. The functions are intended to be used by
  4534. // clients wishing to automate the CoClass objects exposed by the
  4535. // server of this typelibrary.
  4536. // *********************************************************************//
  4537. CoNameTranslate = class
  4538. class function Create: IADsNameTranslate;
  4539. class function CreateRemote(const MachineName: string): IADsNameTranslate;
  4540. end;
  4541. // *********************************************************************//
  4542. // OLE Server Proxy class declaration
  4543. // Server Object : TNameTranslate
  4544. // Help String :
  4545. // Default Interface: IADsNameTranslate
  4546. // Def. Intf. DISP? : No
  4547. // Event Interface:
  4548. // TypeFlags : (2) CanCreate
  4549. // *********************************************************************//
  4550. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4551. TNameTranslateProperties= class;
  4552. {$ENDIF}
  4553. TNameTranslate = class(TOleServer)
  4554. private
  4555. FIntf: IADsNameTranslate;
  4556. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4557. FProps: TNameTranslateProperties;
  4558. function GetServerProperties: TNameTranslateProperties;
  4559. {$ENDIF}
  4560. function GetDefaultInterface: IADsNameTranslate;
  4561. protected
  4562. procedure InitServerData; override;
  4563. procedure Set_ChaseReferral(Param1: Integer);
  4564. public
  4565. constructor Create(AOwner: TComponent); override;
  4566. destructor Destroy; override;
  4567. procedure Connect; override;
  4568. procedure ConnectTo(svrIntf: IADsNameTranslate);
  4569. procedure Disconnect; override;
  4570. procedure Init(lnSetType: Integer; const bstrADsPath: WideString);
  4571. procedure InitEx(lnSetType: Integer; const bstrADsPath: WideString;
  4572. const bstrUserID: WideString; const bstrDomain: WideString;
  4573. const bstrPassword: WideString);
  4574. procedure Set_(lnSetType: Integer; const bstrADsPath: WideString);
  4575. function Get(lnFormatType: Integer): WideString;
  4576. procedure SetEx(lnFormatType: Integer; pVar: OleVariant);
  4577. function GetEx(lnFormatType: Integer): OleVariant;
  4578. property DefaultInterface: IADsNameTranslate read GetDefaultInterface;
  4579. property ChaseReferral: Integer write Set_ChaseReferral;
  4580. published
  4581. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4582. property Server: TNameTranslateProperties read GetServerProperties;
  4583. {$ENDIF}
  4584. end;
  4585. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4586. // *********************************************************************//
  4587. // OLE Server Properties Proxy Class
  4588. // Server Object : TNameTranslate
  4589. // (This object is used by the IDE's Property Inspector to allow editing
  4590. // of the properties of this server)
  4591. // *********************************************************************//
  4592. TNameTranslateProperties = class(TPersistent)
  4593. private
  4594. FServer: TNameTranslate;
  4595. function GetDefaultInterface: IADsNameTranslate;
  4596. constructor Create(AServer: TNameTranslate);
  4597. protected
  4598. procedure Set_ChaseReferral(Param1: Integer);
  4599. public
  4600. property DefaultInterface: IADsNameTranslate read GetDefaultInterface;
  4601. published
  4602. end;
  4603. {$ENDIF}
  4604. // *********************************************************************//
  4605. // The Class CoCaseIgnoreList provides a Create and CreateRemote method to
  4606. // create instances of the default interface IADsCaseIgnoreList exposed by
  4607. // the CoClass CaseIgnoreList. The functions are intended to be used by
  4608. // clients wishing to automate the CoClass objects exposed by the
  4609. // server of this typelibrary.
  4610. // *********************************************************************//
  4611. CoCaseIgnoreList = class
  4612. class function Create: IADsCaseIgnoreList;
  4613. class function CreateRemote(const MachineName: string): IADsCaseIgnoreList;
  4614. end;
  4615. // *********************************************************************//
  4616. // OLE Server Proxy class declaration
  4617. // Server Object : TCaseIgnoreList
  4618. // Help String :
  4619. // Default Interface: IADsCaseIgnoreList
  4620. // Def. Intf. DISP? : No
  4621. // Event Interface:
  4622. // TypeFlags : (2) CanCreate
  4623. // *********************************************************************//
  4624. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4625. TCaseIgnoreListProperties= class;
  4626. {$ENDIF}
  4627. TCaseIgnoreList = class(TOleServer)
  4628. private
  4629. FIntf: IADsCaseIgnoreList;
  4630. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4631. FProps: TCaseIgnoreListProperties;
  4632. function GetServerProperties: TCaseIgnoreListProperties;
  4633. {$ENDIF}
  4634. function GetDefaultInterface: IADsCaseIgnoreList;
  4635. protected
  4636. procedure InitServerData; override;
  4637. function Get_CaseIgnoreList: OleVariant;
  4638. procedure Set_CaseIgnoreList(retval: OleVariant);
  4639. public
  4640. constructor Create(AOwner: TComponent); override;
  4641. destructor Destroy; override;
  4642. procedure Connect; override;
  4643. procedure ConnectTo(svrIntf: IADsCaseIgnoreList);
  4644. procedure Disconnect; override;
  4645. property DefaultInterface: IADsCaseIgnoreList read GetDefaultInterface;
  4646. property CaseIgnoreList: OleVariant read Get_CaseIgnoreList write Set_CaseIgnoreList;
  4647. published
  4648. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4649. property Server: TCaseIgnoreListProperties read GetServerProperties;
  4650. {$ENDIF}
  4651. end;
  4652. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4653. // *********************************************************************//
  4654. // OLE Server Properties Proxy Class
  4655. // Server Object : TCaseIgnoreList
  4656. // (This object is used by the IDE's Property Inspector to allow editing
  4657. // of the properties of this server)
  4658. // *********************************************************************//
  4659. TCaseIgnoreListProperties = class(TPersistent)
  4660. private
  4661. FServer: TCaseIgnoreList;
  4662. function GetDefaultInterface: IADsCaseIgnoreList;
  4663. constructor Create(AServer: TCaseIgnoreList);
  4664. protected
  4665. function Get_CaseIgnoreList: OleVariant;
  4666. procedure Set_CaseIgnoreList(retval: OleVariant);
  4667. public
  4668. property DefaultInterface: IADsCaseIgnoreList read GetDefaultInterface;
  4669. published
  4670. end;
  4671. {$ENDIF}
  4672. // *********************************************************************//
  4673. // The Class CoFaxNumber provides a Create and CreateRemote method to
  4674. // create instances of the default interface IADsFaxNumber exposed by
  4675. // the CoClass FaxNumber. The functions are intended to be used by
  4676. // clients wishing to automate the CoClass objects exposed by the
  4677. // server of this typelibrary.
  4678. // *********************************************************************//
  4679. CoFaxNumber = class
  4680. class function Create: IADsFaxNumber;
  4681. class function CreateRemote(const MachineName: string): IADsFaxNumber;
  4682. end;
  4683. // *********************************************************************//
  4684. // OLE Server Proxy class declaration
  4685. // Server Object : TFaxNumber
  4686. // Help String :
  4687. // Default Interface: IADsFaxNumber
  4688. // Def. Intf. DISP? : No
  4689. // Event Interface:
  4690. // TypeFlags : (2) CanCreate
  4691. // *********************************************************************//
  4692. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4693. TFaxNumberProperties= class;
  4694. {$ENDIF}
  4695. TFaxNumber = class(TOleServer)
  4696. private
  4697. FIntf: IADsFaxNumber;
  4698. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4699. FProps: TFaxNumberProperties;
  4700. function GetServerProperties: TFaxNumberProperties;
  4701. {$ENDIF}
  4702. function GetDefaultInterface: IADsFaxNumber;
  4703. protected
  4704. procedure InitServerData; override;
  4705. function Get_TelephoneNumber: WideString;
  4706. procedure Set_TelephoneNumber(const retval: WideString);
  4707. function Get_Parameters: OleVariant;
  4708. procedure Set_Parameters(retval: OleVariant);
  4709. public
  4710. constructor Create(AOwner: TComponent); override;
  4711. destructor Destroy; override;
  4712. procedure Connect; override;
  4713. procedure ConnectTo(svrIntf: IADsFaxNumber);
  4714. procedure Disconnect; override;
  4715. property DefaultInterface: IADsFaxNumber read GetDefaultInterface;
  4716. property Parameters: OleVariant read Get_Parameters write Set_Parameters;
  4717. property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
  4718. published
  4719. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4720. property Server: TFaxNumberProperties read GetServerProperties;
  4721. {$ENDIF}
  4722. end;
  4723. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4724. // *********************************************************************//
  4725. // OLE Server Properties Proxy Class
  4726. // Server Object : TFaxNumber
  4727. // (This object is used by the IDE's Property Inspector to allow editing
  4728. // of the properties of this server)
  4729. // *********************************************************************//
  4730. TFaxNumberProperties = class(TPersistent)
  4731. private
  4732. FServer: TFaxNumber;
  4733. function GetDefaultInterface: IADsFaxNumber;
  4734. constructor Create(AServer: TFaxNumber);
  4735. protected
  4736. function Get_TelephoneNumber: WideString;
  4737. procedure Set_TelephoneNumber(const retval: WideString);
  4738. function Get_Parameters: OleVariant;
  4739. procedure Set_Parameters(retval: OleVariant);
  4740. public
  4741. property DefaultInterface: IADsFaxNumber read GetDefaultInterface;
  4742. published
  4743. property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
  4744. end;
  4745. {$ENDIF}
  4746. // *********************************************************************//
  4747. // The Class CoNetAddress provides a Create and CreateRemote method to
  4748. // create instances of the default interface IADsNetAddress exposed by
  4749. // the CoClass NetAddress. The functions are intended to be used by
  4750. // clients wishing to automate the CoClass objects exposed by the
  4751. // server of this typelibrary.
  4752. // *********************************************************************//
  4753. CoNetAddress = class
  4754. class function Create: IADsNetAddress;
  4755. class function CreateRemote(const MachineName: string): IADsNetAddress;
  4756. end;
  4757. // *********************************************************************//
  4758. // OLE Server Proxy class declaration
  4759. // Server Object : TNetAddress
  4760. // Help String :
  4761. // Default Interface: IADsNetAddress
  4762. // Def. Intf. DISP? : No
  4763. // Event Interface:
  4764. // TypeFlags : (2) CanCreate
  4765. // *********************************************************************//
  4766. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4767. TNetAddressProperties= class;
  4768. {$ENDIF}
  4769. TNetAddress = class(TOleServer)
  4770. private
  4771. FIntf: IADsNetAddress;
  4772. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4773. FProps: TNetAddressProperties;
  4774. function GetServerProperties: TNetAddressProperties;
  4775. {$ENDIF}
  4776. function GetDefaultInterface: IADsNetAddress;
  4777. protected
  4778. procedure InitServerData; override;
  4779. function Get_AddressType: Integer;
  4780. procedure Set_AddressType(retval: Integer);
  4781. function Get_Address: OleVariant;
  4782. procedure Set_Address(retval: OleVariant);
  4783. public
  4784. constructor Create(AOwner: TComponent); override;
  4785. destructor Destroy; override;
  4786. procedure Connect; override;
  4787. procedure ConnectTo(svrIntf: IADsNetAddress);
  4788. procedure Disconnect; override;
  4789. property DefaultInterface: IADsNetAddress read GetDefaultInterface;
  4790. property Address: OleVariant read Get_Address write Set_Address;
  4791. property AddressType: Integer read Get_AddressType write Set_AddressType;
  4792. published
  4793. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4794. property Server: TNetAddressProperties read GetServerProperties;
  4795. {$ENDIF}
  4796. end;
  4797. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4798. // *********************************************************************//
  4799. // OLE Server Properties Proxy Class
  4800. // Server Object : TNetAddress
  4801. // (This object is used by the IDE's Property Inspector to allow editing
  4802. // of the properties of this server)
  4803. // *********************************************************************//
  4804. TNetAddressProperties = class(TPersistent)
  4805. private
  4806. FServer: TNetAddress;
  4807. function GetDefaultInterface: IADsNetAddress;
  4808. constructor Create(AServer: TNetAddress);
  4809. protected
  4810. function Get_AddressType: Integer;
  4811. procedure Set_AddressType(retval: Integer);
  4812. function Get_Address: OleVariant;
  4813. procedure Set_Address(retval: OleVariant);
  4814. public
  4815. property DefaultInterface: IADsNetAddress read GetDefaultInterface;
  4816. published
  4817. property AddressType: Integer read Get_AddressType write Set_AddressType;
  4818. end;
  4819. {$ENDIF}
  4820. // *********************************************************************//
  4821. // The Class CoOctetList provides a Create and CreateRemote method to
  4822. // create instances of the default interface IADsOctetList exposed by
  4823. // the CoClass OctetList. The functions are intended to be used by
  4824. // clients wishing to automate the CoClass objects exposed by the
  4825. // server of this typelibrary.
  4826. // *********************************************************************//
  4827. CoOctetList = class
  4828. class function Create: IADsOctetList;
  4829. class function CreateRemote(const MachineName: string): IADsOctetList;
  4830. end;
  4831. // *********************************************************************//
  4832. // OLE Server Proxy class declaration
  4833. // Server Object : TOctetList
  4834. // Help String :
  4835. // Default Interface: IADsOctetList
  4836. // Def. Intf. DISP? : No
  4837. // Event Interface:
  4838. // TypeFlags : (2) CanCreate
  4839. // *********************************************************************//
  4840. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4841. TOctetListProperties= class;
  4842. {$ENDIF}
  4843. TOctetList = class(TOleServer)
  4844. private
  4845. FIntf: IADsOctetList;
  4846. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4847. FProps: TOctetListProperties;
  4848. function GetServerProperties: TOctetListProperties;
  4849. {$ENDIF}
  4850. function GetDefaultInterface: IADsOctetList;
  4851. protected
  4852. procedure InitServerData; override;
  4853. function Get_OctetList: OleVariant;
  4854. procedure Set_OctetList(retval: OleVariant);
  4855. public
  4856. constructor Create(AOwner: TComponent); override;
  4857. destructor Destroy; override;
  4858. procedure Connect; override;
  4859. procedure ConnectTo(svrIntf: IADsOctetList);
  4860. procedure Disconnect; override;
  4861. property DefaultInterface: IADsOctetList read GetDefaultInterface;
  4862. property OctetList: OleVariant read Get_OctetList write Set_OctetList;
  4863. published
  4864. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4865. property Server: TOctetListProperties read GetServerProperties;
  4866. {$ENDIF}
  4867. end;
  4868. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4869. // *********************************************************************//
  4870. // OLE Server Properties Proxy Class
  4871. // Server Object : TOctetList
  4872. // (This object is used by the IDE's Property Inspector to allow editing
  4873. // of the properties of this server)
  4874. // *********************************************************************//
  4875. TOctetListProperties = class(TPersistent)
  4876. private
  4877. FServer: TOctetList;
  4878. function GetDefaultInterface: IADsOctetList;
  4879. constructor Create(AServer: TOctetList);
  4880. protected
  4881. function Get_OctetList: OleVariant;
  4882. procedure Set_OctetList(retval: OleVariant);
  4883. public
  4884. property DefaultInterface: IADsOctetList read GetDefaultInterface;
  4885. published
  4886. end;
  4887. {$ENDIF}
  4888. // *********************************************************************//
  4889. // The Class CoEmail provides a Create and CreateRemote method to
  4890. // create instances of the default interface IADsEmail exposed by
  4891. // the CoClass Email. The functions are intended to be used by
  4892. // clients wishing to automate the CoClass objects exposed by the
  4893. // server of this typelibrary.
  4894. // *********************************************************************//
  4895. CoEmail = class
  4896. class function Create: IADsEmail;
  4897. class function CreateRemote(const MachineName: string): IADsEmail;
  4898. end;
  4899. // *********************************************************************//
  4900. // OLE Server Proxy class declaration
  4901. // Server Object : TEmail
  4902. // Help String :
  4903. // Default Interface: IADsEmail
  4904. // Def. Intf. DISP? : No
  4905. // Event Interface:
  4906. // TypeFlags : (2) CanCreate
  4907. // *********************************************************************//
  4908. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4909. TEmailProperties= class;
  4910. {$ENDIF}
  4911. TEmail = class(TOleServer)
  4912. private
  4913. FIntf: IADsEmail;
  4914. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4915. FProps: TEmailProperties;
  4916. function GetServerProperties: TEmailProperties;
  4917. {$ENDIF}
  4918. function GetDefaultInterface: IADsEmail;
  4919. protected
  4920. procedure InitServerData; override;
  4921. function Get_Type_: Integer;
  4922. procedure Set_Type_(retval: Integer);
  4923. function Get_Address: WideString;
  4924. procedure Set_Address(const retval: WideString);
  4925. public
  4926. constructor Create(AOwner: TComponent); override;
  4927. destructor Destroy; override;
  4928. procedure Connect; override;
  4929. procedure ConnectTo(svrIntf: IADsEmail);
  4930. procedure Disconnect; override;
  4931. property DefaultInterface: IADsEmail read GetDefaultInterface;
  4932. property Type_: Integer read Get_Type_ write Set_Type_;
  4933. property Address: WideString read Get_Address write Set_Address;
  4934. published
  4935. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4936. property Server: TEmailProperties read GetServerProperties;
  4937. {$ENDIF}
  4938. end;
  4939. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4940. // *********************************************************************//
  4941. // OLE Server Properties Proxy Class
  4942. // Server Object : TEmail
  4943. // (This object is used by the IDE's Property Inspector to allow editing
  4944. // of the properties of this server)
  4945. // *********************************************************************//
  4946. TEmailProperties = class(TPersistent)
  4947. private
  4948. FServer: TEmail;
  4949. function GetDefaultInterface: IADsEmail;
  4950. constructor Create(AServer: TEmail);
  4951. protected
  4952. function Get_Type_: Integer;
  4953. procedure Set_Type_(retval: Integer);
  4954. function Get_Address: WideString;
  4955. procedure Set_Address(const retval: WideString);
  4956. public
  4957. property DefaultInterface: IADsEmail read GetDefaultInterface;
  4958. published
  4959. property Type_: Integer read Get_Type_ write Set_Type_;
  4960. property Address: WideString read Get_Address write Set_Address;
  4961. end;
  4962. {$ENDIF}
  4963. // *********************************************************************//
  4964. // The Class CoPath provides a Create and CreateRemote method to
  4965. // create instances of the default interface IADsPath exposed by
  4966. // the CoClass Path. The functions are intended to be used by
  4967. // clients wishing to automate the CoClass objects exposed by the
  4968. // server of this typelibrary.
  4969. // *********************************************************************//
  4970. CoPath = class
  4971. class function Create: IADsPath;
  4972. class function CreateRemote(const MachineName: string): IADsPath;
  4973. end;
  4974. // *********************************************************************//
  4975. // OLE Server Proxy class declaration
  4976. // Server Object : TPath
  4977. // Help String :
  4978. // Default Interface: IADsPath
  4979. // Def. Intf. DISP? : No
  4980. // Event Interface:
  4981. // TypeFlags : (2) CanCreate
  4982. // *********************************************************************//
  4983. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4984. TPathProperties= class;
  4985. {$ENDIF}
  4986. TPath = class(TOleServer)
  4987. private
  4988. FIntf: IADsPath;
  4989. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  4990. FProps: TPathProperties;
  4991. function GetServerProperties: TPathProperties;
  4992. {$ENDIF}
  4993. function GetDefaultInterface: IADsPath;
  4994. protected
  4995. procedure InitServerData; override;
  4996. function Get_Type_: Integer;
  4997. procedure Set_Type_(retval: Integer);
  4998. function Get_VolumeName: WideString;
  4999. procedure Set_VolumeName(const retval: WideString);
  5000. function Get_Path: WideString;
  5001. procedure Set_Path(const retval: WideString);
  5002. public
  5003. constructor Create(AOwner: TComponent); override;
  5004. destructor Destroy; override;
  5005. procedure Connect; override;
  5006. procedure ConnectTo(svrIntf: IADsPath);
  5007. procedure Disconnect; override;
  5008. property DefaultInterface: IADsPath read GetDefaultInterface;
  5009. property Type_: Integer read Get_Type_ write Set_Type_;
  5010. property VolumeName: WideString read Get_VolumeName write Set_VolumeName;
  5011. property Path: WideString read Get_Path write Set_Path;
  5012. published
  5013. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5014. property Server: TPathProperties read GetServerProperties;
  5015. {$ENDIF}
  5016. end;
  5017. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5018. // *********************************************************************//
  5019. // OLE Server Properties Proxy Class
  5020. // Server Object : TPath
  5021. // (This object is used by the IDE's Property Inspector to allow editing
  5022. // of the properties of this server)
  5023. // *********************************************************************//
  5024. TPathProperties = class(TPersistent)
  5025. private
  5026. FServer: TPath;
  5027. function GetDefaultInterface: IADsPath;
  5028. constructor Create(AServer: TPath);
  5029. protected
  5030. function Get_Type_: Integer;
  5031. procedure Set_Type_(retval: Integer);
  5032. function Get_VolumeName: WideString;
  5033. procedure Set_VolumeName(const retval: WideString);
  5034. function Get_Path: WideString;
  5035. procedure Set_Path(const retval: WideString);
  5036. public
  5037. property DefaultInterface: IADsPath read GetDefaultInterface;
  5038. published
  5039. property Type_: Integer read Get_Type_ write Set_Type_;
  5040. property VolumeName: WideString read Get_VolumeName write Set_VolumeName;
  5041. property Path: WideString read Get_Path write Set_Path;
  5042. end;
  5043. {$ENDIF}
  5044. // *********************************************************************//
  5045. // The Class CoReplicaPointer provides a Create and CreateRemote method to
  5046. // create instances of the default interface IADsReplicaPointer exposed by
  5047. // the CoClass ReplicaPointer. The functions are intended to be used by
  5048. // clients wishing to automate the CoClass objects exposed by the
  5049. // server of this typelibrary.
  5050. // *********************************************************************//
  5051. CoReplicaPointer = class
  5052. class function Create: IADsReplicaPointer;
  5053. class function CreateRemote(const MachineName: string): IADsReplicaPointer;
  5054. end;
  5055. // *********************************************************************//
  5056. // OLE Server Proxy class declaration
  5057. // Server Object : TReplicaPointer
  5058. // Help String :
  5059. // Default Interface: IADsReplicaPointer
  5060. // Def. Intf. DISP? : No
  5061. // Event Interface:
  5062. // TypeFlags : (2) CanCreate
  5063. // *********************************************************************//
  5064. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5065. TReplicaPointerProperties= class;
  5066. {$ENDIF}
  5067. TReplicaPointer = class(TOleServer)
  5068. private
  5069. FIntf: IADsReplicaPointer;
  5070. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5071. FProps: TReplicaPointerProperties;
  5072. function GetServerProperties: TReplicaPointerProperties;
  5073. {$ENDIF}
  5074. function GetDefaultInterface: IADsReplicaPointer;
  5075. protected
  5076. procedure InitServerData; override;
  5077. function Get_ServerName: WideString;
  5078. procedure Set_ServerName(const retval: WideString);
  5079. function Get_ReplicaType: Integer;
  5080. procedure Set_ReplicaType(retval: Integer);
  5081. function Get_ReplicaNumber: Integer;
  5082. procedure Set_ReplicaNumber(retval: Integer);
  5083. function Get_Count: Integer;
  5084. procedure Set_Count(retval: Integer);
  5085. function Get_ReplicaAddressHints: OleVariant;
  5086. procedure Set_ReplicaAddressHints(retval: OleVariant);
  5087. public
  5088. constructor Create(AOwner: TComponent); override;
  5089. destructor Destroy; override;
  5090. procedure Connect; override;
  5091. procedure ConnectTo(svrIntf: IADsReplicaPointer);
  5092. procedure Disconnect; override;
  5093. property DefaultInterface: IADsReplicaPointer read GetDefaultInterface;
  5094. property ReplicaAddressHints: OleVariant read Get_ReplicaAddressHints write Set_ReplicaAddressHints;
  5095. property ServerName: WideString read Get_ServerName write Set_ServerName;
  5096. property ReplicaType: Integer read Get_ReplicaType write Set_ReplicaType;
  5097. property ReplicaNumber: Integer read Get_ReplicaNumber write Set_ReplicaNumber;
  5098. property Count: Integer read Get_Count write Set_Count;
  5099. published
  5100. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5101. property Server: TReplicaPointerProperties read GetServerProperties;
  5102. {$ENDIF}
  5103. end;
  5104. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5105. // *********************************************************************//
  5106. // OLE Server Properties Proxy Class
  5107. // Server Object : TReplicaPointer
  5108. // (This object is used by the IDE's Property Inspector to allow editing
  5109. // of the properties of this server)
  5110. // *********************************************************************//
  5111. TReplicaPointerProperties = class(TPersistent)
  5112. private
  5113. FServer: TReplicaPointer;
  5114. function GetDefaultInterface: IADsReplicaPointer;
  5115. constructor Create(AServer: TReplicaPointer);
  5116. protected
  5117. function Get_ServerName: WideString;
  5118. procedure Set_ServerName(const retval: WideString);
  5119. function Get_ReplicaType: Integer;
  5120. procedure Set_ReplicaType(retval: Integer);
  5121. function Get_ReplicaNumber: Integer;
  5122. procedure Set_ReplicaNumber(retval: Integer);
  5123. function Get_Count: Integer;
  5124. procedure Set_Count(retval: Integer);
  5125. function Get_ReplicaAddressHints: OleVariant;
  5126. procedure Set_ReplicaAddressHints(retval: OleVariant);
  5127. public
  5128. property DefaultInterface: IADsReplicaPointer read GetDefaultInterface;
  5129. published
  5130. property ServerName: WideString read Get_ServerName write Set_ServerName;
  5131. property ReplicaType: Integer read Get_ReplicaType write Set_ReplicaType;
  5132. property ReplicaNumber: Integer read Get_ReplicaNumber write Set_ReplicaNumber;
  5133. property Count: Integer read Get_Count write Set_Count;
  5134. end;
  5135. {$ENDIF}
  5136. // *********************************************************************//
  5137. // The Class CoAcl provides a Create and CreateRemote method to
  5138. // create instances of the default interface IADsAcl exposed by
  5139. // the CoClass Acl. The functions are intended to be used by
  5140. // clients wishing to automate the CoClass objects exposed by the
  5141. // server of this typelibrary.
  5142. // *********************************************************************//
  5143. CoAcl = class
  5144. class function Create: IADsAcl;
  5145. class function CreateRemote(const MachineName: string): IADsAcl;
  5146. end;
  5147. // *********************************************************************//
  5148. // OLE Server Proxy class declaration
  5149. // Server Object : TAcl
  5150. // Help String :
  5151. // Default Interface: IADsAcl
  5152. // Def. Intf. DISP? : No
  5153. // Event Interface:
  5154. // TypeFlags : (2) CanCreate
  5155. // *********************************************************************//
  5156. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5157. TAclProperties= class;
  5158. {$ENDIF}
  5159. TAcl = class(TOleServer)
  5160. private
  5161. FIntf: IADsAcl;
  5162. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5163. FProps: TAclProperties;
  5164. function GetServerProperties: TAclProperties;
  5165. {$ENDIF}
  5166. function GetDefaultInterface: IADsAcl;
  5167. protected
  5168. procedure InitServerData; override;
  5169. function Get_ProtectedAttrName: WideString;
  5170. procedure Set_ProtectedAttrName(const retval: WideString);
  5171. function Get_SubjectName: WideString;
  5172. procedure Set_SubjectName(const retval: WideString);
  5173. function Get_Privileges: Integer;
  5174. procedure Set_Privileges(retval: Integer);
  5175. public
  5176. constructor Create(AOwner: TComponent); override;
  5177. destructor Destroy; override;
  5178. procedure Connect; override;
  5179. procedure ConnectTo(svrIntf: IADsAcl);
  5180. procedure Disconnect; override;
  5181. function CopyAcl: IDispatch;
  5182. property DefaultInterface: IADsAcl read GetDefaultInterface;
  5183. property ProtectedAttrName: WideString read Get_ProtectedAttrName write Set_ProtectedAttrName;
  5184. property SubjectName: WideString read Get_SubjectName write Set_SubjectName;
  5185. property Privileges: Integer read Get_Privileges write Set_Privileges;
  5186. published
  5187. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5188. property Server: TAclProperties read GetServerProperties;
  5189. {$ENDIF}
  5190. end;
  5191. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5192. // *********************************************************************//
  5193. // OLE Server Properties Proxy Class
  5194. // Server Object : TAcl
  5195. // (This object is used by the IDE's Property Inspector to allow editing
  5196. // of the properties of this server)
  5197. // *********************************************************************//
  5198. TAclProperties = class(TPersistent)
  5199. private
  5200. FServer: TAcl;
  5201. function GetDefaultInterface: IADsAcl;
  5202. constructor Create(AServer: TAcl);
  5203. protected
  5204. function Get_ProtectedAttrName: WideString;
  5205. procedure Set_ProtectedAttrName(const retval: WideString);
  5206. function Get_SubjectName: WideString;
  5207. procedure Set_SubjectName(const retval: WideString);
  5208. function Get_Privileges: Integer;
  5209. procedure Set_Privileges(retval: Integer);
  5210. public
  5211. property DefaultInterface: IADsAcl read GetDefaultInterface;
  5212. published
  5213. property ProtectedAttrName: WideString read Get_ProtectedAttrName write Set_ProtectedAttrName;
  5214. property SubjectName: WideString read Get_SubjectName write Set_SubjectName;
  5215. property Privileges: Integer read Get_Privileges write Set_Privileges;
  5216. end;
  5217. {$ENDIF}
  5218. // *********************************************************************//
  5219. // The Class CoTimestamp provides a Create and CreateRemote method to
  5220. // create instances of the default interface IADsTimestamp exposed by
  5221. // the CoClass Timestamp. The functions are intended to be used by
  5222. // clients wishing to automate the CoClass objects exposed by the
  5223. // server of this typelibrary.
  5224. // *********************************************************************//
  5225. CoTimestamp = class
  5226. class function Create: IADsTimestamp;
  5227. class function CreateRemote(const MachineName: string): IADsTimestamp;
  5228. end;
  5229. // *********************************************************************//
  5230. // OLE Server Proxy class declaration
  5231. // Server Object : TTimestamp
  5232. // Help String :
  5233. // Default Interface: IADsTimestamp
  5234. // Def. Intf. DISP? : No
  5235. // Event Interface:
  5236. // TypeFlags : (2) CanCreate
  5237. // *********************************************************************//
  5238. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5239. TTimestampProperties= class;
  5240. {$ENDIF}
  5241. TTimestamp = class(TOleServer)
  5242. private
  5243. FIntf: IADsTimestamp;
  5244. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5245. FProps: TTimestampProperties;
  5246. function GetServerProperties: TTimestampProperties;
  5247. {$ENDIF}
  5248. function GetDefaultInterface: IADsTimestamp;
  5249. protected
  5250. procedure InitServerData; override;
  5251. function Get_WholeSeconds: Integer;
  5252. procedure Set_WholeSeconds(retval: Integer);
  5253. function Get_EventID: Integer;
  5254. procedure Set_EventID(retval: Integer);
  5255. public
  5256. constructor Create(AOwner: TComponent); override;
  5257. destructor Destroy; override;
  5258. procedure Connect; override;
  5259. procedure ConnectTo(svrIntf: IADsTimestamp);
  5260. procedure Disconnect; override;
  5261. property DefaultInterface: IADsTimestamp read GetDefaultInterface;
  5262. property WholeSeconds: Integer read Get_WholeSeconds write Set_WholeSeconds;
  5263. property EventID: Integer read Get_EventID write Set_EventID;
  5264. published
  5265. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5266. property Server: TTimestampProperties read GetServerProperties;
  5267. {$ENDIF}
  5268. end;
  5269. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5270. // *********************************************************************//
  5271. // OLE Server Properties Proxy Class
  5272. // Server Object : TTimestamp
  5273. // (This object is used by the IDE's Property Inspector to allow editing
  5274. // of the properties of this server)
  5275. // *********************************************************************//
  5276. TTimestampProperties = class(TPersistent)
  5277. private
  5278. FServer: TTimestamp;
  5279. function GetDefaultInterface: IADsTimestamp;
  5280. constructor Create(AServer: TTimestamp);
  5281. protected
  5282. function Get_WholeSeconds: Integer;
  5283. procedure Set_WholeSeconds(retval: Integer);
  5284. function Get_EventID: Integer;
  5285. procedure Set_EventID(retval: Integer);
  5286. public
  5287. property DefaultInterface: IADsTimestamp read GetDefaultInterface;
  5288. published
  5289. property WholeSeconds: Integer read Get_WholeSeconds write Set_WholeSeconds;
  5290. property EventID: Integer read Get_EventID write Set_EventID;
  5291. end;
  5292. {$ENDIF}
  5293. // *********************************************************************//
  5294. // The Class CoPostalAddress provides a Create and CreateRemote method to
  5295. // create instances of the default interface IADsPostalAddress exposed by
  5296. // the CoClass PostalAddress. The functions are intended to be used by
  5297. // clients wishing to automate the CoClass objects exposed by the
  5298. // server of this typelibrary.
  5299. // *********************************************************************//
  5300. CoPostalAddress = class
  5301. class function Create: IADsPostalAddress;
  5302. class function CreateRemote(const MachineName: string): IADsPostalAddress;
  5303. end;
  5304. // *********************************************************************//
  5305. // OLE Server Proxy class declaration
  5306. // Server Object : TPostalAddress
  5307. // Help String :
  5308. // Default Interface: IADsPostalAddress
  5309. // Def. Intf. DISP? : No
  5310. // Event Interface:
  5311. // TypeFlags : (2) CanCreate
  5312. // *********************************************************************//
  5313. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5314. TPostalAddressProperties= class;
  5315. {$ENDIF}
  5316. TPostalAddress = class(TOleServer)
  5317. private
  5318. FIntf: IADsPostalAddress;
  5319. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5320. FProps: TPostalAddressProperties;
  5321. function GetServerProperties: TPostalAddressProperties;
  5322. {$ENDIF}
  5323. function GetDefaultInterface: IADsPostalAddress;
  5324. protected
  5325. procedure InitServerData; override;
  5326. function Get_PostalAddress: OleVariant;
  5327. procedure Set_PostalAddress(retval: OleVariant);
  5328. public
  5329. constructor Create(AOwner: TComponent); override;
  5330. destructor Destroy; override;
  5331. procedure Connect; override;
  5332. procedure ConnectTo(svrIntf: IADsPostalAddress);
  5333. procedure Disconnect; override;
  5334. property DefaultInterface: IADsPostalAddress read GetDefaultInterface;
  5335. property PostalAddress: OleVariant read Get_PostalAddress write Set_PostalAddress;
  5336. published
  5337. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5338. property Server: TPostalAddressProperties read GetServerProperties;
  5339. {$ENDIF}
  5340. end;
  5341. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5342. // *********************************************************************//
  5343. // OLE Server Properties Proxy Class
  5344. // Server Object : TPostalAddress
  5345. // (This object is used by the IDE's Property Inspector to allow editing
  5346. // of the properties of this server)
  5347. // *********************************************************************//
  5348. TPostalAddressProperties = class(TPersistent)
  5349. private
  5350. FServer: TPostalAddress;
  5351. function GetDefaultInterface: IADsPostalAddress;
  5352. constructor Create(AServer: TPostalAddress);
  5353. protected
  5354. function Get_PostalAddress: OleVariant;
  5355. procedure Set_PostalAddress(retval: OleVariant);
  5356. public
  5357. property DefaultInterface: IADsPostalAddress read GetDefaultInterface;
  5358. published
  5359. end;
  5360. {$ENDIF}
  5361. // *********************************************************************//
  5362. // The Class CoBackLink provides a Create and CreateRemote method to
  5363. // create instances of the default interface IADsBackLink exposed by
  5364. // the CoClass BackLink. The functions are intended to be used by
  5365. // clients wishing to automate the CoClass objects exposed by the
  5366. // server of this typelibrary.
  5367. // *********************************************************************//
  5368. CoBackLink = class
  5369. class function Create: IADsBackLink;
  5370. class function CreateRemote(const MachineName: string): IADsBackLink;
  5371. end;
  5372. // *********************************************************************//
  5373. // OLE Server Proxy class declaration
  5374. // Server Object : TBackLink
  5375. // Help String :
  5376. // Default Interface: IADsBackLink
  5377. // Def. Intf. DISP? : No
  5378. // Event Interface:
  5379. // TypeFlags : (2) CanCreate
  5380. // *********************************************************************//
  5381. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5382. TBackLinkProperties= class;
  5383. {$ENDIF}
  5384. TBackLink = class(TOleServer)
  5385. private
  5386. FIntf: IADsBackLink;
  5387. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5388. FProps: TBackLinkProperties;
  5389. function GetServerProperties: TBackLinkProperties;
  5390. {$ENDIF}
  5391. function GetDefaultInterface: IADsBackLink;
  5392. protected
  5393. procedure InitServerData; override;
  5394. function Get_RemoteID: Integer;
  5395. procedure Set_RemoteID(retval: Integer);
  5396. function Get_ObjectName: WideString;
  5397. procedure Set_ObjectName(const retval: WideString);
  5398. public
  5399. constructor Create(AOwner: TComponent); override;
  5400. destructor Destroy; override;
  5401. procedure Connect; override;
  5402. procedure ConnectTo(svrIntf: IADsBackLink);
  5403. procedure Disconnect; override;
  5404. property DefaultInterface: IADsBackLink read GetDefaultInterface;
  5405. property RemoteID: Integer read Get_RemoteID write Set_RemoteID;
  5406. property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
  5407. published
  5408. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5409. property Server: TBackLinkProperties read GetServerProperties;
  5410. {$ENDIF}
  5411. end;
  5412. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5413. // *********************************************************************//
  5414. // OLE Server Properties Proxy Class
  5415. // Server Object : TBackLink
  5416. // (This object is used by the IDE's Property Inspector to allow editing
  5417. // of the properties of this server)
  5418. // *********************************************************************//
  5419. TBackLinkProperties = class(TPersistent)
  5420. private
  5421. FServer: TBackLink;
  5422. function GetDefaultInterface: IADsBackLink;
  5423. constructor Create(AServer: TBackLink);
  5424. protected
  5425. function Get_RemoteID: Integer;
  5426. procedure Set_RemoteID(retval: Integer);
  5427. function Get_ObjectName: WideString;
  5428. procedure Set_ObjectName(const retval: WideString);
  5429. public
  5430. property DefaultInterface: IADsBackLink read GetDefaultInterface;
  5431. published
  5432. property RemoteID: Integer read Get_RemoteID write Set_RemoteID;
  5433. property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
  5434. end;
  5435. {$ENDIF}
  5436. // *********************************************************************//
  5437. // The Class CoTypedName provides a Create and CreateRemote method to
  5438. // create instances of the default interface IADsTypedName exposed by
  5439. // the CoClass TypedName. The functions are intended to be used by
  5440. // clients wishing to automate the CoClass objects exposed by the
  5441. // server of this typelibrary.
  5442. // *********************************************************************//
  5443. CoTypedName = class
  5444. class function Create: IADsTypedName;
  5445. class function CreateRemote(const MachineName: string): IADsTypedName;
  5446. end;
  5447. // *********************************************************************//
  5448. // OLE Server Proxy class declaration
  5449. // Server Object : TTypedName
  5450. // Help String :
  5451. // Default Interface: IADsTypedName
  5452. // Def. Intf. DISP? : No
  5453. // Event Interface:
  5454. // TypeFlags : (2) CanCreate
  5455. // *********************************************************************//
  5456. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5457. TTypedNameProperties= class;
  5458. {$ENDIF}
  5459. TTypedName = class(TOleServer)
  5460. private
  5461. FIntf: IADsTypedName;
  5462. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5463. FProps: TTypedNameProperties;
  5464. function GetServerProperties: TTypedNameProperties;
  5465. {$ENDIF}
  5466. function GetDefaultInterface: IADsTypedName;
  5467. protected
  5468. procedure InitServerData; override;
  5469. function Get_ObjectName: WideString;
  5470. procedure Set_ObjectName(const retval: WideString);
  5471. function Get_Level: Integer;
  5472. procedure Set_Level(retval: Integer);
  5473. function Get_Interval: Integer;
  5474. procedure Set_Interval(retval: Integer);
  5475. public
  5476. constructor Create(AOwner: TComponent); override;
  5477. destructor Destroy; override;
  5478. procedure Connect; override;
  5479. procedure ConnectTo(svrIntf: IADsTypedName);
  5480. procedure Disconnect; override;
  5481. property DefaultInterface: IADsTypedName read GetDefaultInterface;
  5482. property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
  5483. property Level: Integer read Get_Level write Set_Level;
  5484. property Interval: Integer read Get_Interval write Set_Interval;
  5485. published
  5486. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5487. property Server: TTypedNameProperties read GetServerProperties;
  5488. {$ENDIF}
  5489. end;
  5490. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5491. // *********************************************************************//
  5492. // OLE Server Properties Proxy Class
  5493. // Server Object : TTypedName
  5494. // (This object is used by the IDE's Property Inspector to allow editing
  5495. // of the properties of this server)
  5496. // *********************************************************************//
  5497. TTypedNameProperties = class(TPersistent)
  5498. private
  5499. FServer: TTypedName;
  5500. function GetDefaultInterface: IADsTypedName;
  5501. constructor Create(AServer: TTypedName);
  5502. protected
  5503. function Get_ObjectName: WideString;
  5504. procedure Set_ObjectName(const retval: WideString);
  5505. function Get_Level: Integer;
  5506. procedure Set_Level(retval: Integer);
  5507. function Get_Interval: Integer;
  5508. procedure Set_Interval(retval: Integer);
  5509. public
  5510. property DefaultInterface: IADsTypedName read GetDefaultInterface;
  5511. published
  5512. property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
  5513. property Level: Integer read Get_Level write Set_Level;
  5514. property Interval: Integer read Get_Interval write Set_Interval;
  5515. end;
  5516. {$ENDIF}
  5517. // *********************************************************************//
  5518. // The Class CoHold provides a Create and CreateRemote method to
  5519. // create instances of the default interface IADsHold exposed by
  5520. // the CoClass Hold. The functions are intended to be used by
  5521. // clients wishing to automate the CoClass objects exposed by the
  5522. // server of this typelibrary.
  5523. // *********************************************************************//
  5524. CoHold = class
  5525. class function Create: IADsHold;
  5526. class function CreateRemote(const MachineName: string): IADsHold;
  5527. end;
  5528. // *********************************************************************//
  5529. // OLE Server Proxy class declaration
  5530. // Server Object : THold
  5531. // Help String :
  5532. // Default Interface: IADsHold
  5533. // Def. Intf. DISP? : No
  5534. // Event Interface:
  5535. // TypeFlags : (2) CanCreate
  5536. // *********************************************************************//
  5537. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5538. THoldProperties= class;
  5539. {$ENDIF}
  5540. THold = class(TOleServer)
  5541. private
  5542. FIntf: IADsHold;
  5543. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5544. FProps: THoldProperties;
  5545. function GetServerProperties: THoldProperties;
  5546. {$ENDIF}
  5547. function GetDefaultInterface: IADsHold;
  5548. protected
  5549. procedure InitServerData; override;
  5550. function Get_ObjectName: WideString;
  5551. procedure Set_ObjectName(const retval: WideString);
  5552. function Get_Amount: Integer;
  5553. procedure Set_Amount(retval: Integer);
  5554. public
  5555. constructor Create(AOwner: TComponent); override;
  5556. destructor Destroy; override;
  5557. procedure Connect; override;
  5558. procedure ConnectTo(svrIntf: IADsHold);
  5559. procedure Disconnect; override;
  5560. property DefaultInterface: IADsHold read GetDefaultInterface;
  5561. property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
  5562. property Amount: Integer read Get_Amount write Set_Amount;
  5563. published
  5564. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5565. property Server: THoldProperties read GetServerProperties;
  5566. {$ENDIF}
  5567. end;
  5568. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5569. // *********************************************************************//
  5570. // OLE Server Properties Proxy Class
  5571. // Server Object : THold
  5572. // (This object is used by the IDE's Property Inspector to allow editing
  5573. // of the properties of this server)
  5574. // *********************************************************************//
  5575. THoldProperties = class(TPersistent)
  5576. private
  5577. FServer: THold;
  5578. function GetDefaultInterface: IADsHold;
  5579. constructor Create(AServer: THold);
  5580. protected
  5581. function Get_ObjectName: WideString;
  5582. procedure Set_ObjectName(const retval: WideString);
  5583. function Get_Amount: Integer;
  5584. procedure Set_Amount(retval: Integer);
  5585. public
  5586. property DefaultInterface: IADsHold read GetDefaultInterface;
  5587. published
  5588. property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
  5589. property Amount: Integer read Get_Amount write Set_Amount;
  5590. end;
  5591. {$ENDIF}
  5592. // *********************************************************************//
  5593. // The Class CoPathname provides a Create and CreateRemote method to
  5594. // create instances of the default interface IADsPathname exposed by
  5595. // the CoClass Pathname. The functions are intended to be used by
  5596. // clients wishing to automate the CoClass objects exposed by the
  5597. // server of this typelibrary.
  5598. // *********************************************************************//
  5599. CoPathname = class
  5600. class function Create: IADsPathname;
  5601. class function CreateRemote(const MachineName: string): IADsPathname;
  5602. end;
  5603. // *********************************************************************//
  5604. // OLE Server Proxy class declaration
  5605. // Server Object : TPathname
  5606. // Help String :
  5607. // Default Interface: IADsPathname
  5608. // Def. Intf. DISP? : No
  5609. // Event Interface:
  5610. // TypeFlags : (2) CanCreate
  5611. // *********************************************************************//
  5612. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5613. TPathnameProperties= class;
  5614. {$ENDIF}
  5615. TPathname = class(TOleServer)
  5616. private
  5617. FIntf: IADsPathname;
  5618. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5619. FProps: TPathnameProperties;
  5620. function GetServerProperties: TPathnameProperties;
  5621. {$ENDIF}
  5622. function GetDefaultInterface: IADsPathname;
  5623. protected
  5624. procedure InitServerData; override;
  5625. function Get_EscapedMode: Integer;
  5626. procedure Set_EscapedMode(retval: Integer);
  5627. public
  5628. constructor Create(AOwner: TComponent); override;
  5629. destructor Destroy; override;
  5630. procedure Connect; override;
  5631. procedure ConnectTo(svrIntf: IADsPathname);
  5632. procedure Disconnect; override;
  5633. procedure Set_(const bstrADsPath: WideString; lnSetType: Integer);
  5634. procedure SetDisplayType(lnDisplayType: Integer);
  5635. function Retrieve(lnFormatType: Integer): WideString;
  5636. function GetNumElements: Integer;
  5637. function GetElement(lnElementIndex: Integer): WideString;
  5638. procedure AddLeafElement(const bstrLeafElement: WideString);
  5639. procedure RemoveLeafElement;
  5640. function CopyPath: IDispatch;
  5641. function GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString;
  5642. property DefaultInterface: IADsPathname read GetDefaultInterface;
  5643. property EscapedMode: Integer read Get_EscapedMode write Set_EscapedMode;
  5644. published
  5645. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5646. property Server: TPathnameProperties read GetServerProperties;
  5647. {$ENDIF}
  5648. end;
  5649. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5650. // *********************************************************************//
  5651. // OLE Server Properties Proxy Class
  5652. // Server Object : TPathname
  5653. // (This object is used by the IDE's Property Inspector to allow editing
  5654. // of the properties of this server)
  5655. // *********************************************************************//
  5656. TPathnameProperties = class(TPersistent)
  5657. private
  5658. FServer: TPathname;
  5659. function GetDefaultInterface: IADsPathname;
  5660. constructor Create(AServer: TPathname);
  5661. protected
  5662. function Get_EscapedMode: Integer;
  5663. procedure Set_EscapedMode(retval: Integer);
  5664. public
  5665. property DefaultInterface: IADsPathname read GetDefaultInterface;
  5666. published
  5667. property EscapedMode: Integer read Get_EscapedMode write Set_EscapedMode;
  5668. end;
  5669. {$ENDIF}
  5670. // *********************************************************************//
  5671. // The Class CoADSystemInfo provides a Create and CreateRemote method to
  5672. // create instances of the default interface IADsADSystemInfo exposed by
  5673. // the CoClass ADSystemInfo. The functions are intended to be used by
  5674. // clients wishing to automate the CoClass objects exposed by the
  5675. // server of this typelibrary.
  5676. // *********************************************************************//
  5677. CoADSystemInfo = class
  5678. class function Create: IADsADSystemInfo;
  5679. class function CreateRemote(const MachineName: string): IADsADSystemInfo;
  5680. end;
  5681. // *********************************************************************//
  5682. // OLE Server Proxy class declaration
  5683. // Server Object : TADSystemInfo
  5684. // Help String :
  5685. // Default Interface: IADsADSystemInfo
  5686. // Def. Intf. DISP? : No
  5687. // Event Interface:
  5688. // TypeFlags : (2) CanCreate
  5689. // *********************************************************************//
  5690. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5691. TADSystemInfoProperties= class;
  5692. {$ENDIF}
  5693. TADSystemInfo = class(TOleServer)
  5694. private
  5695. FIntf: IADsADSystemInfo;
  5696. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5697. FProps: TADSystemInfoProperties;
  5698. function GetServerProperties: TADSystemInfoProperties;
  5699. {$ENDIF}
  5700. function GetDefaultInterface: IADsADSystemInfo;
  5701. protected
  5702. procedure InitServerData; override;
  5703. function Get_UserName: WideString;
  5704. function Get_ComputerName: WideString;
  5705. function Get_SiteName: WideString;
  5706. function Get_DomainShortName: WideString;
  5707. function Get_DomainDNSName: WideString;
  5708. function Get_ForestDNSName: WideString;
  5709. function Get_PDCRoleOwner: WideString;
  5710. function Get_SchemaRoleOwner: WideString;
  5711. function Get_IsNativeMode: WordBool;
  5712. public
  5713. constructor Create(AOwner: TComponent); override;
  5714. destructor Destroy; override;
  5715. procedure Connect; override;
  5716. procedure ConnectTo(svrIntf: IADsADSystemInfo);
  5717. procedure Disconnect; override;
  5718. function GetAnyDCName: WideString;
  5719. function GetDCSiteName(const szServer: WideString): WideString;
  5720. procedure RefreshSchemaCache;
  5721. function GetTrees: OleVariant;
  5722. property DefaultInterface: IADsADSystemInfo read GetDefaultInterface;
  5723. property UserName: WideString read Get_UserName;
  5724. property ComputerName: WideString read Get_ComputerName;
  5725. property SiteName: WideString read Get_SiteName;
  5726. property DomainShortName: WideString read Get_DomainShortName;
  5727. property DomainDNSName: WideString read Get_DomainDNSName;
  5728. property ForestDNSName: WideString read Get_ForestDNSName;
  5729. property PDCRoleOwner: WideString read Get_PDCRoleOwner;
  5730. property SchemaRoleOwner: WideString read Get_SchemaRoleOwner;
  5731. property IsNativeMode: WordBool read Get_IsNativeMode;
  5732. published
  5733. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5734. property Server: TADSystemInfoProperties read GetServerProperties;
  5735. {$ENDIF}
  5736. end;
  5737. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5738. // *********************************************************************//
  5739. // OLE Server Properties Proxy Class
  5740. // Server Object : TADSystemInfo
  5741. // (This object is used by the IDE's Property Inspector to allow editing
  5742. // of the properties of this server)
  5743. // *********************************************************************//
  5744. TADSystemInfoProperties = class(TPersistent)
  5745. private
  5746. FServer: TADSystemInfo;
  5747. function GetDefaultInterface: IADsADSystemInfo;
  5748. constructor Create(AServer: TADSystemInfo);
  5749. protected
  5750. function Get_UserName: WideString;
  5751. function Get_ComputerName: WideString;
  5752. function Get_SiteName: WideString;
  5753. function Get_DomainShortName: WideString;
  5754. function Get_DomainDNSName: WideString;
  5755. function Get_ForestDNSName: WideString;
  5756. function Get_PDCRoleOwner: WideString;
  5757. function Get_SchemaRoleOwner: WideString;
  5758. function Get_IsNativeMode: WordBool;
  5759. public
  5760. property DefaultInterface: IADsADSystemInfo read GetDefaultInterface;
  5761. published
  5762. end;
  5763. {$ENDIF}
  5764. // *********************************************************************//
  5765. // The Class CoWinNTSystemInfo provides a Create and CreateRemote method to
  5766. // create instances of the default interface IADsWinNTSystemInfo exposed by
  5767. // the CoClass WinNTSystemInfo. The functions are intended to be used by
  5768. // clients wishing to automate the CoClass objects exposed by the
  5769. // server of this typelibrary.
  5770. // *********************************************************************//
  5771. CoWinNTSystemInfo = class
  5772. class function Create: IADsWinNTSystemInfo;
  5773. class function CreateRemote(const MachineName: string): IADsWinNTSystemInfo;
  5774. end;
  5775. // *********************************************************************//
  5776. // OLE Server Proxy class declaration
  5777. // Server Object : TWinNTSystemInfo
  5778. // Help String :
  5779. // Default Interface: IADsWinNTSystemInfo
  5780. // Def. Intf. DISP? : No
  5781. // Event Interface:
  5782. // TypeFlags : (2) CanCreate
  5783. // *********************************************************************//
  5784. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5785. TWinNTSystemInfoProperties= class;
  5786. {$ENDIF}
  5787. TWinNTSystemInfo = class(TOleServer)
  5788. private
  5789. FIntf: IADsWinNTSystemInfo;
  5790. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5791. FProps: TWinNTSystemInfoProperties;
  5792. function GetServerProperties: TWinNTSystemInfoProperties;
  5793. {$ENDIF}
  5794. function GetDefaultInterface: IADsWinNTSystemInfo;
  5795. protected
  5796. procedure InitServerData; override;
  5797. function Get_UserName: WideString;
  5798. function Get_ComputerName: WideString;
  5799. function Get_DomainName: WideString;
  5800. function Get_PDC: WideString;
  5801. public
  5802. constructor Create(AOwner: TComponent); override;
  5803. destructor Destroy; override;
  5804. procedure Connect; override;
  5805. procedure ConnectTo(svrIntf: IADsWinNTSystemInfo);
  5806. procedure Disconnect; override;
  5807. property DefaultInterface: IADsWinNTSystemInfo read GetDefaultInterface;
  5808. property UserName: WideString read Get_UserName;
  5809. property ComputerName: WideString read Get_ComputerName;
  5810. property DomainName: WideString read Get_DomainName;
  5811. property PDC: WideString read Get_PDC;
  5812. published
  5813. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5814. property Server: TWinNTSystemInfoProperties read GetServerProperties;
  5815. {$ENDIF}
  5816. end;
  5817. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5818. // *********************************************************************//
  5819. // OLE Server Properties Proxy Class
  5820. // Server Object : TWinNTSystemInfo
  5821. // (This object is used by the IDE's Property Inspector to allow editing
  5822. // of the properties of this server)
  5823. // *********************************************************************//
  5824. TWinNTSystemInfoProperties = class(TPersistent)
  5825. private
  5826. FServer: TWinNTSystemInfo;
  5827. function GetDefaultInterface: IADsWinNTSystemInfo;
  5828. constructor Create(AServer: TWinNTSystemInfo);
  5829. protected
  5830. function Get_UserName: WideString;
  5831. function Get_ComputerName: WideString;
  5832. function Get_DomainName: WideString;
  5833. function Get_PDC: WideString;
  5834. public
  5835. property DefaultInterface: IADsWinNTSystemInfo read GetDefaultInterface;
  5836. published
  5837. end;
  5838. {$ENDIF}
  5839. // *********************************************************************//
  5840. // The Class CoDNWithBinary provides a Create and CreateRemote method to
  5841. // create instances of the default interface IADsDNWithBinary exposed by
  5842. // the CoClass DNWithBinary. The functions are intended to be used by
  5843. // clients wishing to automate the CoClass objects exposed by the
  5844. // server of this typelibrary.
  5845. // *********************************************************************//
  5846. CoDNWithBinary = class
  5847. class function Create: IADsDNWithBinary;
  5848. class function CreateRemote(const MachineName: string): IADsDNWithBinary;
  5849. end;
  5850. // *********************************************************************//
  5851. // OLE Server Proxy class declaration
  5852. // Server Object : TDNWithBinary
  5853. // Help String :
  5854. // Default Interface: IADsDNWithBinary
  5855. // Def. Intf. DISP? : No
  5856. // Event Interface:
  5857. // TypeFlags : (2) CanCreate
  5858. // *********************************************************************//
  5859. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5860. TDNWithBinaryProperties= class;
  5861. {$ENDIF}
  5862. TDNWithBinary = class(TOleServer)
  5863. private
  5864. FIntf: IADsDNWithBinary;
  5865. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5866. FProps: TDNWithBinaryProperties;
  5867. function GetServerProperties: TDNWithBinaryProperties;
  5868. {$ENDIF}
  5869. function GetDefaultInterface: IADsDNWithBinary;
  5870. protected
  5871. procedure InitServerData; override;
  5872. function Get_BinaryValue: OleVariant;
  5873. procedure Set_BinaryValue(retval: OleVariant);
  5874. function Get_DNString: WideString;
  5875. procedure Set_DNString(const retval: WideString);
  5876. public
  5877. constructor Create(AOwner: TComponent); override;
  5878. destructor Destroy; override;
  5879. procedure Connect; override;
  5880. procedure ConnectTo(svrIntf: IADsDNWithBinary);
  5881. procedure Disconnect; override;
  5882. property DefaultInterface: IADsDNWithBinary read GetDefaultInterface;
  5883. property BinaryValue: OleVariant read Get_BinaryValue write Set_BinaryValue;
  5884. property DNString: WideString read Get_DNString write Set_DNString;
  5885. published
  5886. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5887. property Server: TDNWithBinaryProperties read GetServerProperties;
  5888. {$ENDIF}
  5889. end;
  5890. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5891. // *********************************************************************//
  5892. // OLE Server Properties Proxy Class
  5893. // Server Object : TDNWithBinary
  5894. // (This object is used by the IDE's Property Inspector to allow editing
  5895. // of the properties of this server)
  5896. // *********************************************************************//
  5897. TDNWithBinaryProperties = class(TPersistent)
  5898. private
  5899. FServer: TDNWithBinary;
  5900. function GetDefaultInterface: IADsDNWithBinary;
  5901. constructor Create(AServer: TDNWithBinary);
  5902. protected
  5903. function Get_BinaryValue: OleVariant;
  5904. procedure Set_BinaryValue(retval: OleVariant);
  5905. function Get_DNString: WideString;
  5906. procedure Set_DNString(const retval: WideString);
  5907. public
  5908. property DefaultInterface: IADsDNWithBinary read GetDefaultInterface;
  5909. published
  5910. property DNString: WideString read Get_DNString write Set_DNString;
  5911. end;
  5912. {$ENDIF}
  5913. // *********************************************************************//
  5914. // The Class CoDNWithString provides a Create and CreateRemote method to
  5915. // create instances of the default interface IADsDNWithString exposed by
  5916. // the CoClass DNWithString. The functions are intended to be used by
  5917. // clients wishing to automate the CoClass objects exposed by the
  5918. // server of this typelibrary.
  5919. // *********************************************************************//
  5920. CoDNWithString = class
  5921. class function Create: IADsDNWithString;
  5922. class function CreateRemote(const MachineName: string): IADsDNWithString;
  5923. end;
  5924. // *********************************************************************//
  5925. // OLE Server Proxy class declaration
  5926. // Server Object : TDNWithString
  5927. // Help String :
  5928. // Default Interface: IADsDNWithString
  5929. // Def. Intf. DISP? : No
  5930. // Event Interface:
  5931. // TypeFlags : (2) CanCreate
  5932. // *********************************************************************//
  5933. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5934. TDNWithStringProperties= class;
  5935. {$ENDIF}
  5936. TDNWithString = class(TOleServer)
  5937. private
  5938. FIntf: IADsDNWithString;
  5939. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5940. FProps: TDNWithStringProperties;
  5941. function GetServerProperties: TDNWithStringProperties;
  5942. {$ENDIF}
  5943. function GetDefaultInterface: IADsDNWithString;
  5944. protected
  5945. procedure InitServerData; override;
  5946. function Get_StringValue: WideString;
  5947. procedure Set_StringValue(const retval: WideString);
  5948. function Get_DNString: WideString;
  5949. procedure Set_DNString(const retval: WideString);
  5950. public
  5951. constructor Create(AOwner: TComponent); override;
  5952. destructor Destroy; override;
  5953. procedure Connect; override;
  5954. procedure ConnectTo(svrIntf: IADsDNWithString);
  5955. procedure Disconnect; override;
  5956. property DefaultInterface: IADsDNWithString read GetDefaultInterface;
  5957. property StringValue: WideString read Get_StringValue write Set_StringValue;
  5958. property DNString: WideString read Get_DNString write Set_DNString;
  5959. published
  5960. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5961. property Server: TDNWithStringProperties read GetServerProperties;
  5962. {$ENDIF}
  5963. end;
  5964. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  5965. // *********************************************************************//
  5966. // OLE Server Properties Proxy Class
  5967. // Server Object : TDNWithString
  5968. // (This object is used by the IDE's Property Inspector to allow editing
  5969. // of the properties of this server)
  5970. // *********************************************************************//
  5971. TDNWithStringProperties = class(TPersistent)
  5972. private
  5973. FServer: TDNWithString;
  5974. function GetDefaultInterface: IADsDNWithString;
  5975. constructor Create(AServer: TDNWithString);
  5976. protected
  5977. function Get_StringValue: WideString;
  5978. procedure Set_StringValue(const retval: WideString);
  5979. function Get_DNString: WideString;
  5980. procedure Set_DNString(const retval: WideString);
  5981. public
  5982. property DefaultInterface: IADsDNWithString read GetDefaultInterface;
  5983. published
  5984. property StringValue: WideString read Get_StringValue write Set_StringValue;
  5985. property DNString: WideString read Get_DNString write Set_DNString;
  5986. end;
  5987. {$ENDIF}
  5988. procedure Register;
  5989. implementation
  5990. uses ComObj;
  5991. class function CoPropertyEntry.Create: IADsPropertyEntry;
  5992. begin
  5993. Result := CreateComObject(CLASS_PropertyEntry) as IADsPropertyEntry;
  5994. end;
  5995. class function CoPropertyEntry.CreateRemote(const MachineName: string): IADsPropertyEntry;
  5996. begin
  5997. Result := CreateRemoteComObject(MachineName, CLASS_PropertyEntry) as IADsPropertyEntry;
  5998. end;
  5999. procedure TPropertyEntry.InitServerData;
  6000. const
  6001. CServerData: TServerData = (
  6002. ClassID: '{72D3EDC2-A4C4-11D0-8533-00C04FD8D503}';
  6003. IntfIID: '{05792C8E-941F-11D0-8529-00C04FD8D503}';
  6004. EventIID: '';
  6005. LicenseKey: nil;
  6006. Version: 500);
  6007. begin
  6008. ServerData := @CServerData;
  6009. end;
  6010. procedure TPropertyEntry.Connect;
  6011. var
  6012. punk: IUnknown;
  6013. begin
  6014. if FIntf = nil then
  6015. begin
  6016. punk := GetServer;
  6017. Fintf:= punk as IADsPropertyEntry;
  6018. end;
  6019. end;
  6020. procedure TPropertyEntry.ConnectTo(svrIntf: IADsPropertyEntry);
  6021. begin
  6022. Disconnect;
  6023. FIntf := svrIntf;
  6024. end;
  6025. procedure TPropertyEntry.DisConnect;
  6026. begin
  6027. if Fintf <> nil then
  6028. begin
  6029. FIntf := nil;
  6030. end;
  6031. end;
  6032. function TPropertyEntry.GetDefaultInterface: IADsPropertyEntry;
  6033. begin
  6034. if FIntf = nil then
  6035. Connect;
  6036. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  6037. Result := FIntf;
  6038. end;
  6039. constructor TPropertyEntry.Create(AOwner: TComponent);
  6040. begin
  6041. inherited Create(AOwner);
  6042. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6043. FProps := TPropertyEntryProperties.Create(Self);
  6044. {$ENDIF}
  6045. end;
  6046. destructor TPropertyEntry.Destroy;
  6047. begin
  6048. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6049. FProps.Free;
  6050. {$ENDIF}
  6051. inherited Destroy;
  6052. end;
  6053. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6054. function TPropertyEntry.GetServerProperties: TPropertyEntryProperties;
  6055. begin
  6056. Result := FProps;
  6057. end;
  6058. {$ENDIF}
  6059. function TPropertyEntry.Get_Name: WideString;
  6060. begin
  6061. Result := DefaultInterface.Get_Name;
  6062. end;
  6063. procedure TPropertyEntry.Set_Name(const retval: WideString);
  6064. begin
  6065. DefaultInterface.Set_Name(retval);
  6066. end;
  6067. function TPropertyEntry.Get_ADsType: Integer;
  6068. begin
  6069. Result := DefaultInterface.Get_ADsType;
  6070. end;
  6071. procedure TPropertyEntry.Set_ADsType(retval: Integer);
  6072. begin
  6073. DefaultInterface.Set_ADsType(retval);
  6074. end;
  6075. function TPropertyEntry.Get_ControlCode: Integer;
  6076. begin
  6077. Result := DefaultInterface.Get_ControlCode;
  6078. end;
  6079. procedure TPropertyEntry.Set_ControlCode(retval: Integer);
  6080. begin
  6081. DefaultInterface.Set_ControlCode(retval);
  6082. end;
  6083. function TPropertyEntry.Get_Values: OleVariant;
  6084. begin
  6085. Result := DefaultInterface.Get_Values;
  6086. end;
  6087. procedure TPropertyEntry.Set_Values(retval: OleVariant);
  6088. begin
  6089. DefaultInterface.Set_Values(retval);
  6090. end;
  6091. procedure TPropertyEntry.Clear;
  6092. begin
  6093. DefaultInterface.Clear;
  6094. end;
  6095. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6096. constructor TPropertyEntryProperties.Create(AServer: TPropertyEntry);
  6097. begin
  6098. inherited Create;
  6099. FServer := AServer;
  6100. end;
  6101. function TPropertyEntryProperties.GetDefaultInterface: IADsPropertyEntry;
  6102. begin
  6103. Result := FServer.DefaultInterface;
  6104. end;
  6105. function TPropertyEntryProperties.Get_Name: WideString;
  6106. begin
  6107. Result := DefaultInterface.Get_Name;
  6108. end;
  6109. procedure TPropertyEntryProperties.Set_Name(const retval: WideString);
  6110. begin
  6111. DefaultInterface.Set_Name(retval);
  6112. end;
  6113. function TPropertyEntryProperties.Get_ADsType: Integer;
  6114. begin
  6115. Result := DefaultInterface.Get_ADsType;
  6116. end;
  6117. procedure TPropertyEntryProperties.Set_ADsType(retval: Integer);
  6118. begin
  6119. DefaultInterface.Set_ADsType(retval);
  6120. end;
  6121. function TPropertyEntryProperties.Get_ControlCode: Integer;
  6122. begin
  6123. Result := DefaultInterface.Get_ControlCode;
  6124. end;
  6125. procedure TPropertyEntryProperties.Set_ControlCode(retval: Integer);
  6126. begin
  6127. DefaultInterface.Set_ControlCode(retval);
  6128. end;
  6129. function TPropertyEntryProperties.Get_Values: OleVariant;
  6130. begin
  6131. Result := DefaultInterface.Get_Values;
  6132. end;
  6133. procedure TPropertyEntryProperties.Set_Values(retval: OleVariant);
  6134. begin
  6135. DefaultInterface.Set_Values(retval);
  6136. end;
  6137. {$ENDIF}
  6138. class function CoPropertyValue.Create: IADsPropertyValue;
  6139. begin
  6140. Result := CreateComObject(CLASS_PropertyValue) as IADsPropertyValue;
  6141. end;
  6142. class function CoPropertyValue.CreateRemote(const MachineName: string): IADsPropertyValue;
  6143. begin
  6144. Result := CreateRemoteComObject(MachineName, CLASS_PropertyValue) as IADsPropertyValue;
  6145. end;
  6146. procedure TPropertyValue.InitServerData;
  6147. const
  6148. CServerData: TServerData = (
  6149. ClassID: '{7B9E38B0-A97C-11D0-8534-00C04FD8D503}';
  6150. IntfIID: '{79FA9AD0-A97C-11D0-8534-00C04FD8D503}';
  6151. EventIID: '';
  6152. LicenseKey: nil;
  6153. Version: 500);
  6154. begin
  6155. ServerData := @CServerData;
  6156. end;
  6157. procedure TPropertyValue.Connect;
  6158. var
  6159. punk: IUnknown;
  6160. begin
  6161. if FIntf = nil then
  6162. begin
  6163. punk := GetServer;
  6164. Fintf:= punk as IADsPropertyValue;
  6165. end;
  6166. end;
  6167. procedure TPropertyValue.ConnectTo(svrIntf: IADsPropertyValue);
  6168. begin
  6169. Disconnect;
  6170. FIntf := svrIntf;
  6171. end;
  6172. procedure TPropertyValue.DisConnect;
  6173. begin
  6174. if Fintf <> nil then
  6175. begin
  6176. FIntf := nil;
  6177. end;
  6178. end;
  6179. function TPropertyValue.GetDefaultInterface: IADsPropertyValue;
  6180. begin
  6181. if FIntf = nil then
  6182. Connect;
  6183. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  6184. Result := FIntf;
  6185. end;
  6186. constructor TPropertyValue.Create(AOwner: TComponent);
  6187. begin
  6188. inherited Create(AOwner);
  6189. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6190. FProps := TPropertyValueProperties.Create(Self);
  6191. {$ENDIF}
  6192. end;
  6193. destructor TPropertyValue.Destroy;
  6194. begin
  6195. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6196. FProps.Free;
  6197. {$ENDIF}
  6198. inherited Destroy;
  6199. end;
  6200. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6201. function TPropertyValue.GetServerProperties: TPropertyValueProperties;
  6202. begin
  6203. Result := FProps;
  6204. end;
  6205. {$ENDIF}
  6206. function TPropertyValue.Get_ADsType: Integer;
  6207. begin
  6208. Result := DefaultInterface.Get_ADsType;
  6209. end;
  6210. procedure TPropertyValue.Set_ADsType(retval: Integer);
  6211. begin
  6212. DefaultInterface.Set_ADsType(retval);
  6213. end;
  6214. function TPropertyValue.Get_DNString: WideString;
  6215. begin
  6216. Result := DefaultInterface.Get_DNString;
  6217. end;
  6218. procedure TPropertyValue.Set_DNString(const retval: WideString);
  6219. begin
  6220. DefaultInterface.Set_DNString(retval);
  6221. end;
  6222. function TPropertyValue.Get_CaseExactString: WideString;
  6223. begin
  6224. Result := DefaultInterface.Get_CaseExactString;
  6225. end;
  6226. procedure TPropertyValue.Set_CaseExactString(const retval: WideString);
  6227. begin
  6228. DefaultInterface.Set_CaseExactString(retval);
  6229. end;
  6230. function TPropertyValue.Get_CaseIgnoreString: WideString;
  6231. begin
  6232. Result := DefaultInterface.Get_CaseIgnoreString;
  6233. end;
  6234. procedure TPropertyValue.Set_CaseIgnoreString(const retval: WideString);
  6235. begin
  6236. DefaultInterface.Set_CaseIgnoreString(retval);
  6237. end;
  6238. function TPropertyValue.Get_PrintableString: WideString;
  6239. begin
  6240. Result := DefaultInterface.Get_PrintableString;
  6241. end;
  6242. procedure TPropertyValue.Set_PrintableString(const retval: WideString);
  6243. begin
  6244. DefaultInterface.Set_PrintableString(retval);
  6245. end;
  6246. function TPropertyValue.Get_NumericString: WideString;
  6247. begin
  6248. Result := DefaultInterface.Get_NumericString;
  6249. end;
  6250. procedure TPropertyValue.Set_NumericString(const retval: WideString);
  6251. begin
  6252. DefaultInterface.Set_NumericString(retval);
  6253. end;
  6254. function TPropertyValue.Get_Boolean: Integer;
  6255. begin
  6256. Result := DefaultInterface.Get_Boolean;
  6257. end;
  6258. procedure TPropertyValue.Set_Boolean(retval: Integer);
  6259. begin
  6260. DefaultInterface.Set_Boolean(retval);
  6261. end;
  6262. function TPropertyValue.Get_Integer: Integer;
  6263. begin
  6264. Result := DefaultInterface.Get_Integer;
  6265. end;
  6266. procedure TPropertyValue.Set_Integer(retval: Integer);
  6267. begin
  6268. DefaultInterface.Set_Integer(retval);
  6269. end;
  6270. function TPropertyValue.Get_OctetString: OleVariant;
  6271. begin
  6272. Result := DefaultInterface.Get_OctetString;
  6273. end;
  6274. procedure TPropertyValue.Set_OctetString(retval: OleVariant);
  6275. begin
  6276. DefaultInterface.Set_OctetString(retval);
  6277. end;
  6278. function TPropertyValue.Get_SecurityDescriptor: IDispatch;
  6279. begin
  6280. Result := DefaultInterface.Get_SecurityDescriptor;
  6281. end;
  6282. procedure TPropertyValue.Set_SecurityDescriptor(const retval: IDispatch);
  6283. begin
  6284. DefaultInterface.Set_SecurityDescriptor(retval);
  6285. end;
  6286. function TPropertyValue.Get_LargeInteger: IDispatch;
  6287. begin
  6288. Result := DefaultInterface.Get_LargeInteger;
  6289. end;
  6290. procedure TPropertyValue.Set_LargeInteger(const retval: IDispatch);
  6291. begin
  6292. DefaultInterface.Set_LargeInteger(retval);
  6293. end;
  6294. function TPropertyValue.Get_UTCTime: TDateTime;
  6295. begin
  6296. Result := DefaultInterface.Get_UTCTime;
  6297. end;
  6298. procedure TPropertyValue.Set_UTCTime(retval: TDateTime);
  6299. begin
  6300. DefaultInterface.Set_UTCTime(retval);
  6301. end;
  6302. procedure TPropertyValue.Clear;
  6303. begin
  6304. DefaultInterface.Clear;
  6305. end;
  6306. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6307. constructor TPropertyValueProperties.Create(AServer: TPropertyValue);
  6308. begin
  6309. inherited Create;
  6310. FServer := AServer;
  6311. end;
  6312. function TPropertyValueProperties.GetDefaultInterface: IADsPropertyValue;
  6313. begin
  6314. Result := FServer.DefaultInterface;
  6315. end;
  6316. function TPropertyValueProperties.Get_ADsType: Integer;
  6317. begin
  6318. Result := DefaultInterface.Get_ADsType;
  6319. end;
  6320. procedure TPropertyValueProperties.Set_ADsType(retval: Integer);
  6321. begin
  6322. DefaultInterface.Set_ADsType(retval);
  6323. end;
  6324. function TPropertyValueProperties.Get_DNString: WideString;
  6325. begin
  6326. Result := DefaultInterface.Get_DNString;
  6327. end;
  6328. procedure TPropertyValueProperties.Set_DNString(const retval: WideString);
  6329. begin
  6330. DefaultInterface.Set_DNString(retval);
  6331. end;
  6332. function TPropertyValueProperties.Get_CaseExactString: WideString;
  6333. begin
  6334. Result := DefaultInterface.Get_CaseExactString;
  6335. end;
  6336. procedure TPropertyValueProperties.Set_CaseExactString(const retval: WideString);
  6337. begin
  6338. DefaultInterface.Set_CaseExactString(retval);
  6339. end;
  6340. function TPropertyValueProperties.Get_CaseIgnoreString: WideString;
  6341. begin
  6342. Result := DefaultInterface.Get_CaseIgnoreString;
  6343. end;
  6344. procedure TPropertyValueProperties.Set_CaseIgnoreString(const retval: WideString);
  6345. begin
  6346. DefaultInterface.Set_CaseIgnoreString(retval);
  6347. end;
  6348. function TPropertyValueProperties.Get_PrintableString: WideString;
  6349. begin
  6350. Result := DefaultInterface.Get_PrintableString;
  6351. end;
  6352. procedure TPropertyValueProperties.Set_PrintableString(const retval: WideString);
  6353. begin
  6354. DefaultInterface.Set_PrintableString(retval);
  6355. end;
  6356. function TPropertyValueProperties.Get_NumericString: WideString;
  6357. begin
  6358. Result := DefaultInterface.Get_NumericString;
  6359. end;
  6360. procedure TPropertyValueProperties.Set_NumericString(const retval: WideString);
  6361. begin
  6362. DefaultInterface.Set_NumericString(retval);
  6363. end;
  6364. function TPropertyValueProperties.Get_Boolean: Integer;
  6365. begin
  6366. Result := DefaultInterface.Get_Boolean;
  6367. end;
  6368. procedure TPropertyValueProperties.Set_Boolean(retval: Integer);
  6369. begin
  6370. DefaultInterface.Set_Boolean(retval);
  6371. end;
  6372. function TPropertyValueProperties.Get_Integer: Integer;
  6373. begin
  6374. Result := DefaultInterface.Get_Integer;
  6375. end;
  6376. procedure TPropertyValueProperties.Set_Integer(retval: Integer);
  6377. begin
  6378. DefaultInterface.Set_Integer(retval);
  6379. end;
  6380. function TPropertyValueProperties.Get_OctetString: OleVariant;
  6381. begin
  6382. Result := DefaultInterface.Get_OctetString;
  6383. end;
  6384. procedure TPropertyValueProperties.Set_OctetString(retval: OleVariant);
  6385. begin
  6386. DefaultInterface.Set_OctetString(retval);
  6387. end;
  6388. function TPropertyValueProperties.Get_SecurityDescriptor: IDispatch;
  6389. begin
  6390. Result := DefaultInterface.Get_SecurityDescriptor;
  6391. end;
  6392. procedure TPropertyValueProperties.Set_SecurityDescriptor(const retval: IDispatch);
  6393. begin
  6394. DefaultInterface.Set_SecurityDescriptor(retval);
  6395. end;
  6396. function TPropertyValueProperties.Get_LargeInteger: IDispatch;
  6397. begin
  6398. Result := DefaultInterface.Get_LargeInteger;
  6399. end;
  6400. procedure TPropertyValueProperties.Set_LargeInteger(const retval: IDispatch);
  6401. begin
  6402. DefaultInterface.Set_LargeInteger(retval);
  6403. end;
  6404. function TPropertyValueProperties.Get_UTCTime: TDateTime;
  6405. begin
  6406. Result := DefaultInterface.Get_UTCTime;
  6407. end;
  6408. procedure TPropertyValueProperties.Set_UTCTime(retval: TDateTime);
  6409. begin
  6410. DefaultInterface.Set_UTCTime(retval);
  6411. end;
  6412. {$ENDIF}
  6413. class function CoAccessControlEntry.Create: IADsAccessControlEntry;
  6414. begin
  6415. Result := CreateComObject(CLASS_AccessControlEntry) as IADsAccessControlEntry;
  6416. end;
  6417. class function CoAccessControlEntry.CreateRemote(const MachineName: string): IADsAccessControlEntry;
  6418. begin
  6419. Result := CreateRemoteComObject(MachineName, CLASS_AccessControlEntry) as IADsAccessControlEntry;
  6420. end;
  6421. procedure TAccessControlEntry.InitServerData;
  6422. const
  6423. CServerData: TServerData = (
  6424. ClassID: '{B75AC000-9BDD-11D0-852C-00C04FD8D503}';
  6425. IntfIID: '{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}';
  6426. EventIID: '';
  6427. LicenseKey: nil;
  6428. Version: 500);
  6429. begin
  6430. ServerData := @CServerData;
  6431. end;
  6432. procedure TAccessControlEntry.Connect;
  6433. var
  6434. punk: IUnknown;
  6435. begin
  6436. if FIntf = nil then
  6437. begin
  6438. punk := GetServer;
  6439. Fintf:= punk as IADsAccessControlEntry;
  6440. end;
  6441. end;
  6442. procedure TAccessControlEntry.ConnectTo(svrIntf: IADsAccessControlEntry);
  6443. begin
  6444. Disconnect;
  6445. FIntf := svrIntf;
  6446. end;
  6447. procedure TAccessControlEntry.DisConnect;
  6448. begin
  6449. if Fintf <> nil then
  6450. begin
  6451. FIntf := nil;
  6452. end;
  6453. end;
  6454. function TAccessControlEntry.GetDefaultInterface: IADsAccessControlEntry;
  6455. begin
  6456. if FIntf = nil then
  6457. Connect;
  6458. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  6459. Result := FIntf;
  6460. end;
  6461. constructor TAccessControlEntry.Create(AOwner: TComponent);
  6462. begin
  6463. inherited Create(AOwner);
  6464. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6465. FProps := TAccessControlEntryProperties.Create(Self);
  6466. {$ENDIF}
  6467. end;
  6468. destructor TAccessControlEntry.Destroy;
  6469. begin
  6470. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6471. FProps.Free;
  6472. {$ENDIF}
  6473. inherited Destroy;
  6474. end;
  6475. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6476. function TAccessControlEntry.GetServerProperties: TAccessControlEntryProperties;
  6477. begin
  6478. Result := FProps;
  6479. end;
  6480. {$ENDIF}
  6481. function TAccessControlEntry.Get_AccessMask: Integer;
  6482. begin
  6483. Result := DefaultInterface.Get_AccessMask;
  6484. end;
  6485. procedure TAccessControlEntry.Set_AccessMask(retval: Integer);
  6486. begin
  6487. DefaultInterface.Set_AccessMask(retval);
  6488. end;
  6489. function TAccessControlEntry.Get_AceType: Integer;
  6490. begin
  6491. Result := DefaultInterface.Get_AceType;
  6492. end;
  6493. procedure TAccessControlEntry.Set_AceType(retval: Integer);
  6494. begin
  6495. DefaultInterface.Set_AceType(retval);
  6496. end;
  6497. function TAccessControlEntry.Get_AceFlags: Integer;
  6498. begin
  6499. Result := DefaultInterface.Get_AceFlags;
  6500. end;
  6501. procedure TAccessControlEntry.Set_AceFlags(retval: Integer);
  6502. begin
  6503. DefaultInterface.Set_AceFlags(retval);
  6504. end;
  6505. function TAccessControlEntry.Get_Flags: Integer;
  6506. begin
  6507. Result := DefaultInterface.Get_Flags;
  6508. end;
  6509. procedure TAccessControlEntry.Set_Flags(retval: Integer);
  6510. begin
  6511. DefaultInterface.Set_Flags(retval);
  6512. end;
  6513. function TAccessControlEntry.Get_ObjectType: WideString;
  6514. begin
  6515. Result := DefaultInterface.Get_ObjectType;
  6516. end;
  6517. procedure TAccessControlEntry.Set_ObjectType(const retval: WideString);
  6518. begin
  6519. DefaultInterface.Set_ObjectType(retval);
  6520. end;
  6521. function TAccessControlEntry.Get_InheritedObjectType: WideString;
  6522. begin
  6523. Result := DefaultInterface.Get_InheritedObjectType;
  6524. end;
  6525. procedure TAccessControlEntry.Set_InheritedObjectType(const retval: WideString);
  6526. begin
  6527. DefaultInterface.Set_InheritedObjectType(retval);
  6528. end;
  6529. function TAccessControlEntry.Get_Trustee: WideString;
  6530. begin
  6531. Result := DefaultInterface.Get_Trustee;
  6532. end;
  6533. procedure TAccessControlEntry.Set_Trustee(const retval: WideString);
  6534. begin
  6535. DefaultInterface.Set_Trustee(retval);
  6536. end;
  6537. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6538. constructor TAccessControlEntryProperties.Create(AServer: TAccessControlEntry);
  6539. begin
  6540. inherited Create;
  6541. FServer := AServer;
  6542. end;
  6543. function TAccessControlEntryProperties.GetDefaultInterface: IADsAccessControlEntry;
  6544. begin
  6545. Result := FServer.DefaultInterface;
  6546. end;
  6547. function TAccessControlEntryProperties.Get_AccessMask: Integer;
  6548. begin
  6549. Result := DefaultInterface.Get_AccessMask;
  6550. end;
  6551. procedure TAccessControlEntryProperties.Set_AccessMask(retval: Integer);
  6552. begin
  6553. DefaultInterface.Set_AccessMask(retval);
  6554. end;
  6555. function TAccessControlEntryProperties.Get_AceType: Integer;
  6556. begin
  6557. Result := DefaultInterface.Get_AceType;
  6558. end;
  6559. procedure TAccessControlEntryProperties.Set_AceType(retval: Integer);
  6560. begin
  6561. DefaultInterface.Set_AceType(retval);
  6562. end;
  6563. function TAccessControlEntryProperties.Get_AceFlags: Integer;
  6564. begin
  6565. Result := DefaultInterface.Get_AceFlags;
  6566. end;
  6567. procedure TAccessControlEntryProperties.Set_AceFlags(retval: Integer);
  6568. begin
  6569. DefaultInterface.Set_AceFlags(retval);
  6570. end;
  6571. function TAccessControlEntryProperties.Get_Flags: Integer;
  6572. begin
  6573. Result := DefaultInterface.Get_Flags;
  6574. end;
  6575. procedure TAccessControlEntryProperties.Set_Flags(retval: Integer);
  6576. begin
  6577. DefaultInterface.Set_Flags(retval);
  6578. end;
  6579. function TAccessControlEntryProperties.Get_ObjectType: WideString;
  6580. begin
  6581. Result := DefaultInterface.Get_ObjectType;
  6582. end;
  6583. procedure TAccessControlEntryProperties.Set_ObjectType(const retval: WideString);
  6584. begin
  6585. DefaultInterface.Set_ObjectType(retval);
  6586. end;
  6587. function TAccessControlEntryProperties.Get_InheritedObjectType: WideString;
  6588. begin
  6589. Result := DefaultInterface.Get_InheritedObjectType;
  6590. end;
  6591. procedure TAccessControlEntryProperties.Set_InheritedObjectType(const retval: WideString);
  6592. begin
  6593. DefaultInterface.Set_InheritedObjectType(retval);
  6594. end;
  6595. function TAccessControlEntryProperties.Get_Trustee: WideString;
  6596. begin
  6597. Result := DefaultInterface.Get_Trustee;
  6598. end;
  6599. procedure TAccessControlEntryProperties.Set_Trustee(const retval: WideString);
  6600. begin
  6601. DefaultInterface.Set_Trustee(retval);
  6602. end;
  6603. {$ENDIF}
  6604. class function CoAccessControlList.Create: IADsAccessControlList;
  6605. begin
  6606. Result := CreateComObject(CLASS_AccessControlList) as IADsAccessControlList;
  6607. end;
  6608. class function CoAccessControlList.CreateRemote(const MachineName: string): IADsAccessControlList;
  6609. begin
  6610. Result := CreateRemoteComObject(MachineName, CLASS_AccessControlList) as IADsAccessControlList;
  6611. end;
  6612. procedure TAccessControlList.InitServerData;
  6613. const
  6614. CServerData: TServerData = (
  6615. ClassID: '{B85EA052-9BDD-11D0-852C-00C04FD8D503}';
  6616. IntfIID: '{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}';
  6617. EventIID: '';
  6618. LicenseKey: nil;
  6619. Version: 500);
  6620. begin
  6621. ServerData := @CServerData;
  6622. end;
  6623. procedure TAccessControlList.Connect;
  6624. var
  6625. punk: IUnknown;
  6626. begin
  6627. if FIntf = nil then
  6628. begin
  6629. punk := GetServer;
  6630. Fintf:= punk as IADsAccessControlList;
  6631. end;
  6632. end;
  6633. procedure TAccessControlList.ConnectTo(svrIntf: IADsAccessControlList);
  6634. begin
  6635. Disconnect;
  6636. FIntf := svrIntf;
  6637. end;
  6638. procedure TAccessControlList.DisConnect;
  6639. begin
  6640. if Fintf <> nil then
  6641. begin
  6642. FIntf := nil;
  6643. end;
  6644. end;
  6645. function TAccessControlList.GetDefaultInterface: IADsAccessControlList;
  6646. begin
  6647. if FIntf = nil then
  6648. Connect;
  6649. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  6650. Result := FIntf;
  6651. end;
  6652. constructor TAccessControlList.Create(AOwner: TComponent);
  6653. begin
  6654. inherited Create(AOwner);
  6655. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6656. FProps := TAccessControlListProperties.Create(Self);
  6657. {$ENDIF}
  6658. end;
  6659. destructor TAccessControlList.Destroy;
  6660. begin
  6661. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6662. FProps.Free;
  6663. {$ENDIF}
  6664. inherited Destroy;
  6665. end;
  6666. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6667. function TAccessControlList.GetServerProperties: TAccessControlListProperties;
  6668. begin
  6669. Result := FProps;
  6670. end;
  6671. {$ENDIF}
  6672. function TAccessControlList.Get_AclRevision: Integer;
  6673. begin
  6674. Result := DefaultInterface.Get_AclRevision;
  6675. end;
  6676. procedure TAccessControlList.Set_AclRevision(retval: Integer);
  6677. begin
  6678. DefaultInterface.Set_AclRevision(retval);
  6679. end;
  6680. function TAccessControlList.Get_AceCount: Integer;
  6681. begin
  6682. Result := DefaultInterface.Get_AceCount;
  6683. end;
  6684. procedure TAccessControlList.Set_AceCount(retval: Integer);
  6685. begin
  6686. DefaultInterface.Set_AceCount(retval);
  6687. end;
  6688. procedure TAccessControlList.AddAce(const pAccessControlEntry: IDispatch);
  6689. begin
  6690. DefaultInterface.AddAce(pAccessControlEntry);
  6691. end;
  6692. procedure TAccessControlList.RemoveAce(const pAccessControlEntry: IDispatch);
  6693. begin
  6694. DefaultInterface.RemoveAce(pAccessControlEntry);
  6695. end;
  6696. function TAccessControlList.CopyAccessList: IDispatch;
  6697. begin
  6698. Result := DefaultInterface.CopyAccessList;
  6699. end;
  6700. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6701. constructor TAccessControlListProperties.Create(AServer: TAccessControlList);
  6702. begin
  6703. inherited Create;
  6704. FServer := AServer;
  6705. end;
  6706. function TAccessControlListProperties.GetDefaultInterface: IADsAccessControlList;
  6707. begin
  6708. Result := FServer.DefaultInterface;
  6709. end;
  6710. function TAccessControlListProperties.Get_AclRevision: Integer;
  6711. begin
  6712. Result := DefaultInterface.Get_AclRevision;
  6713. end;
  6714. procedure TAccessControlListProperties.Set_AclRevision(retval: Integer);
  6715. begin
  6716. DefaultInterface.Set_AclRevision(retval);
  6717. end;
  6718. function TAccessControlListProperties.Get_AceCount: Integer;
  6719. begin
  6720. Result := DefaultInterface.Get_AceCount;
  6721. end;
  6722. procedure TAccessControlListProperties.Set_AceCount(retval: Integer);
  6723. begin
  6724. DefaultInterface.Set_AceCount(retval);
  6725. end;
  6726. {$ENDIF}
  6727. class function CoSecurityDescriptor.Create: IADsSecurityDescriptor;
  6728. begin
  6729. Result := CreateComObject(CLASS_SecurityDescriptor) as IADsSecurityDescriptor;
  6730. end;
  6731. class function CoSecurityDescriptor.CreateRemote(const MachineName: string): IADsSecurityDescriptor;
  6732. begin
  6733. Result := CreateRemoteComObject(MachineName, CLASS_SecurityDescriptor) as IADsSecurityDescriptor;
  6734. end;
  6735. procedure TSecurityDescriptor.InitServerData;
  6736. const
  6737. CServerData: TServerData = (
  6738. ClassID: '{B958F73C-9BDD-11D0-852C-00C04FD8D503}';
  6739. IntfIID: '{B8C787CA-9BDD-11D0-852C-00C04FD8D503}';
  6740. EventIID: '';
  6741. LicenseKey: nil;
  6742. Version: 500);
  6743. begin
  6744. ServerData := @CServerData;
  6745. end;
  6746. procedure TSecurityDescriptor.Connect;
  6747. var
  6748. punk: IUnknown;
  6749. begin
  6750. if FIntf = nil then
  6751. begin
  6752. punk := GetServer;
  6753. Fintf:= punk as IADsSecurityDescriptor;
  6754. end;
  6755. end;
  6756. procedure TSecurityDescriptor.ConnectTo(svrIntf: IADsSecurityDescriptor);
  6757. begin
  6758. Disconnect;
  6759. FIntf := svrIntf;
  6760. end;
  6761. procedure TSecurityDescriptor.DisConnect;
  6762. begin
  6763. if Fintf <> nil then
  6764. begin
  6765. FIntf := nil;
  6766. end;
  6767. end;
  6768. function TSecurityDescriptor.GetDefaultInterface: IADsSecurityDescriptor;
  6769. begin
  6770. if FIntf = nil then
  6771. Connect;
  6772. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  6773. Result := FIntf;
  6774. end;
  6775. constructor TSecurityDescriptor.Create(AOwner: TComponent);
  6776. begin
  6777. inherited Create(AOwner);
  6778. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6779. FProps := TSecurityDescriptorProperties.Create(Self);
  6780. {$ENDIF}
  6781. end;
  6782. destructor TSecurityDescriptor.Destroy;
  6783. begin
  6784. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6785. FProps.Free;
  6786. {$ENDIF}
  6787. inherited Destroy;
  6788. end;
  6789. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6790. function TSecurityDescriptor.GetServerProperties: TSecurityDescriptorProperties;
  6791. begin
  6792. Result := FProps;
  6793. end;
  6794. {$ENDIF}
  6795. function TSecurityDescriptor.Get_Revision: Integer;
  6796. begin
  6797. Result := DefaultInterface.Get_Revision;
  6798. end;
  6799. procedure TSecurityDescriptor.Set_Revision(retval: Integer);
  6800. begin
  6801. DefaultInterface.Set_Revision(retval);
  6802. end;
  6803. function TSecurityDescriptor.Get_Control: Integer;
  6804. begin
  6805. Result := DefaultInterface.Get_Control;
  6806. end;
  6807. procedure TSecurityDescriptor.Set_Control(retval: Integer);
  6808. begin
  6809. DefaultInterface.Set_Control(retval);
  6810. end;
  6811. function TSecurityDescriptor.Get_Owner: WideString;
  6812. begin
  6813. Result := DefaultInterface.Get_Owner;
  6814. end;
  6815. procedure TSecurityDescriptor.Set_Owner(const retval: WideString);
  6816. begin
  6817. DefaultInterface.Set_Owner(retval);
  6818. end;
  6819. function TSecurityDescriptor.Get_OwnerDefaulted: WordBool;
  6820. begin
  6821. Result := DefaultInterface.Get_OwnerDefaulted;
  6822. end;
  6823. procedure TSecurityDescriptor.Set_OwnerDefaulted(retval: WordBool);
  6824. begin
  6825. DefaultInterface.Set_OwnerDefaulted(retval);
  6826. end;
  6827. function TSecurityDescriptor.Get_Group: WideString;
  6828. begin
  6829. Result := DefaultInterface.Get_Group;
  6830. end;
  6831. procedure TSecurityDescriptor.Set_Group(const retval: WideString);
  6832. begin
  6833. DefaultInterface.Set_Group(retval);
  6834. end;
  6835. function TSecurityDescriptor.Get_GroupDefaulted: WordBool;
  6836. begin
  6837. Result := DefaultInterface.Get_GroupDefaulted;
  6838. end;
  6839. procedure TSecurityDescriptor.Set_GroupDefaulted(retval: WordBool);
  6840. begin
  6841. DefaultInterface.Set_GroupDefaulted(retval);
  6842. end;
  6843. function TSecurityDescriptor.Get_DiscretionaryAcl: IDispatch;
  6844. begin
  6845. Result := DefaultInterface.Get_DiscretionaryAcl;
  6846. end;
  6847. procedure TSecurityDescriptor.Set_DiscretionaryAcl(const retval: IDispatch);
  6848. begin
  6849. DefaultInterface.Set_DiscretionaryAcl(retval);
  6850. end;
  6851. function TSecurityDescriptor.Get_DaclDefaulted: WordBool;
  6852. begin
  6853. Result := DefaultInterface.Get_DaclDefaulted;
  6854. end;
  6855. procedure TSecurityDescriptor.Set_DaclDefaulted(retval: WordBool);
  6856. begin
  6857. DefaultInterface.Set_DaclDefaulted(retval);
  6858. end;
  6859. function TSecurityDescriptor.Get_SystemAcl: IDispatch;
  6860. begin
  6861. Result := DefaultInterface.Get_SystemAcl;
  6862. end;
  6863. procedure TSecurityDescriptor.Set_SystemAcl(const retval: IDispatch);
  6864. begin
  6865. DefaultInterface.Set_SystemAcl(retval);
  6866. end;
  6867. function TSecurityDescriptor.Get_SaclDefaulted: WordBool;
  6868. begin
  6869. Result := DefaultInterface.Get_SaclDefaulted;
  6870. end;
  6871. procedure TSecurityDescriptor.Set_SaclDefaulted(retval: WordBool);
  6872. begin
  6873. DefaultInterface.Set_SaclDefaulted(retval);
  6874. end;
  6875. function TSecurityDescriptor.CopySecurityDescriptor: IDispatch;
  6876. begin
  6877. Result := DefaultInterface.CopySecurityDescriptor;
  6878. end;
  6879. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  6880. constructor TSecurityDescriptorProperties.Create(AServer: TSecurityDescriptor);
  6881. begin
  6882. inherited Create;
  6883. FServer := AServer;
  6884. end;
  6885. function TSecurityDescriptorProperties.GetDefaultInterface: IADsSecurityDescriptor;
  6886. begin
  6887. Result := FServer.DefaultInterface;
  6888. end;
  6889. function TSecurityDescriptorProperties.Get_Revision: Integer;
  6890. begin
  6891. Result := DefaultInterface.Get_Revision;
  6892. end;
  6893. procedure TSecurityDescriptorProperties.Set_Revision(retval: Integer);
  6894. begin
  6895. DefaultInterface.Set_Revision(retval);
  6896. end;
  6897. function TSecurityDescriptorProperties.Get_Control: Integer;
  6898. begin
  6899. Result := DefaultInterface.Get_Control;
  6900. end;
  6901. procedure TSecurityDescriptorProperties.Set_Control(retval: Integer);
  6902. begin
  6903. DefaultInterface.Set_Control(retval);
  6904. end;
  6905. function TSecurityDescriptorProperties.Get_Owner: WideString;
  6906. begin
  6907. Result := DefaultInterface.Get_Owner;
  6908. end;
  6909. procedure TSecurityDescriptorProperties.Set_Owner(const retval: WideString);
  6910. begin
  6911. DefaultInterface.Set_Owner(retval);
  6912. end;
  6913. function TSecurityDescriptorProperties.Get_OwnerDefaulted: WordBool;
  6914. begin
  6915. Result := DefaultInterface.Get_OwnerDefaulted;
  6916. end;
  6917. procedure TSecurityDescriptorProperties.Set_OwnerDefaulted(retval: WordBool);
  6918. begin
  6919. DefaultInterface.Set_OwnerDefaulted(retval);
  6920. end;
  6921. function TSecurityDescriptorProperties.Get_Group: WideString;
  6922. begin
  6923. Result := DefaultInterface.Get_Group;
  6924. end;
  6925. procedure TSecurityDescriptorProperties.Set_Group(const retval: WideString);
  6926. begin
  6927. DefaultInterface.Set_Group(retval);
  6928. end;
  6929. function TSecurityDescriptorProperties.Get_GroupDefaulted: WordBool;
  6930. begin
  6931. Result := DefaultInterface.Get_GroupDefaulted;
  6932. end;
  6933. procedure TSecurityDescriptorProperties.Set_GroupDefaulted(retval: WordBool);
  6934. begin
  6935. DefaultInterface.Set_GroupDefaulted(retval);
  6936. end;
  6937. function TSecurityDescriptorProperties.Get_DiscretionaryAcl: IDispatch;
  6938. begin
  6939. Result := DefaultInterface.Get_DiscretionaryAcl;
  6940. end;
  6941. procedure TSecurityDescriptorProperties.Set_DiscretionaryAcl(const retval: IDispatch);
  6942. begin
  6943. DefaultInterface.Set_DiscretionaryAcl(retval);
  6944. end;
  6945. function TSecurityDescriptorProperties.Get_DaclDefaulted: WordBool;
  6946. begin
  6947. Result := DefaultInterface.Get_DaclDefaulted;
  6948. end;
  6949. procedure TSecurityDescriptorProperties.Set_DaclDefaulted(retval: WordBool);
  6950. begin
  6951. DefaultInterface.Set_DaclDefaulted(retval);
  6952. end;
  6953. function TSecurityDescriptorProperties.Get_SystemAcl: IDispatch;
  6954. begin
  6955. Result := DefaultInterface.Get_SystemAcl;
  6956. end;
  6957. procedure TSecurityDescriptorProperties.Set_SystemAcl(const retval: IDispatch);
  6958. begin
  6959. DefaultInterface.Set_SystemAcl(retval);
  6960. end;
  6961. function TSecurityDescriptorProperties.Get_SaclDefaulted: WordBool;
  6962. begin
  6963. Result := DefaultInterface.Get_SaclDefaulted;
  6964. end;
  6965. procedure TSecurityDescriptorProperties.Set_SaclDefaulted(retval: WordBool);
  6966. begin
  6967. DefaultInterface.Set_SaclDefaulted(retval);
  6968. end;
  6969. {$ENDIF}
  6970. class function CoLargeInteger.Create: IADsLargeInteger;
  6971. begin
  6972. Result := CreateComObject(CLASS_LargeInteger) as IADsLargeInteger;
  6973. end;
  6974. class function CoLargeInteger.CreateRemote(const MachineName: string): IADsLargeInteger;
  6975. begin
  6976. Result := CreateRemoteComObject(MachineName, CLASS_LargeInteger) as IADsLargeInteger;
  6977. end;
  6978. procedure TLargeInteger.InitServerData;
  6979. const
  6980. CServerData: TServerData = (
  6981. ClassID: '{927971F5-0939-11D1-8BE1-00C04FD8D503}';
  6982. IntfIID: '{9068270B-0939-11D1-8BE1-00C04FD8D503}';
  6983. EventIID: '';
  6984. LicenseKey: nil;
  6985. Version: 500);
  6986. begin
  6987. ServerData := @CServerData;
  6988. end;
  6989. procedure TLargeInteger.Connect;
  6990. var
  6991. punk: IUnknown;
  6992. begin
  6993. if FIntf = nil then
  6994. begin
  6995. punk := GetServer;
  6996. Fintf:= punk as IADsLargeInteger;
  6997. end;
  6998. end;
  6999. procedure TLargeInteger.ConnectTo(svrIntf: IADsLargeInteger);
  7000. begin
  7001. Disconnect;
  7002. FIntf := svrIntf;
  7003. end;
  7004. procedure TLargeInteger.DisConnect;
  7005. begin
  7006. if Fintf <> nil then
  7007. begin
  7008. FIntf := nil;
  7009. end;
  7010. end;
  7011. function TLargeInteger.GetDefaultInterface: IADsLargeInteger;
  7012. begin
  7013. if FIntf = nil then
  7014. Connect;
  7015. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  7016. Result := FIntf;
  7017. end;
  7018. constructor TLargeInteger.Create(AOwner: TComponent);
  7019. begin
  7020. inherited Create(AOwner);
  7021. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7022. FProps := TLargeIntegerProperties.Create(Self);
  7023. {$ENDIF}
  7024. end;
  7025. destructor TLargeInteger.Destroy;
  7026. begin
  7027. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7028. FProps.Free;
  7029. {$ENDIF}
  7030. inherited Destroy;
  7031. end;
  7032. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7033. function TLargeInteger.GetServerProperties: TLargeIntegerProperties;
  7034. begin
  7035. Result := FProps;
  7036. end;
  7037. {$ENDIF}
  7038. function TLargeInteger.Get_HighPart: Integer;
  7039. begin
  7040. Result := DefaultInterface.Get_HighPart;
  7041. end;
  7042. procedure TLargeInteger.Set_HighPart(retval: Integer);
  7043. begin
  7044. DefaultInterface.Set_HighPart(retval);
  7045. end;
  7046. function TLargeInteger.Get_LowPart: Integer;
  7047. begin
  7048. Result := DefaultInterface.Get_LowPart;
  7049. end;
  7050. procedure TLargeInteger.Set_LowPart(retval: Integer);
  7051. begin
  7052. DefaultInterface.Set_LowPart(retval);
  7053. end;
  7054. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7055. constructor TLargeIntegerProperties.Create(AServer: TLargeInteger);
  7056. begin
  7057. inherited Create;
  7058. FServer := AServer;
  7059. end;
  7060. function TLargeIntegerProperties.GetDefaultInterface: IADsLargeInteger;
  7061. begin
  7062. Result := FServer.DefaultInterface;
  7063. end;
  7064. function TLargeIntegerProperties.Get_HighPart: Integer;
  7065. begin
  7066. Result := DefaultInterface.Get_HighPart;
  7067. end;
  7068. procedure TLargeIntegerProperties.Set_HighPart(retval: Integer);
  7069. begin
  7070. DefaultInterface.Set_HighPart(retval);
  7071. end;
  7072. function TLargeIntegerProperties.Get_LowPart: Integer;
  7073. begin
  7074. Result := DefaultInterface.Get_LowPart;
  7075. end;
  7076. procedure TLargeIntegerProperties.Set_LowPart(retval: Integer);
  7077. begin
  7078. DefaultInterface.Set_LowPart(retval);
  7079. end;
  7080. {$ENDIF}
  7081. class function CoNameTranslate.Create: IADsNameTranslate;
  7082. begin
  7083. Result := CreateComObject(CLASS_NameTranslate) as IADsNameTranslate;
  7084. end;
  7085. class function CoNameTranslate.CreateRemote(const MachineName: string): IADsNameTranslate;
  7086. begin
  7087. Result := CreateRemoteComObject(MachineName, CLASS_NameTranslate) as IADsNameTranslate;
  7088. end;
  7089. procedure TNameTranslate.InitServerData;
  7090. const
  7091. CServerData: TServerData = (
  7092. ClassID: '{274FAE1F-3626-11D1-A3A4-00C04FB950DC}';
  7093. IntfIID: '{B1B272A3-3625-11D1-A3A4-00C04FB950DC}';
  7094. EventIID: '';
  7095. LicenseKey: nil;
  7096. Version: 500);
  7097. begin
  7098. ServerData := @CServerData;
  7099. end;
  7100. procedure TNameTranslate.Connect;
  7101. var
  7102. punk: IUnknown;
  7103. begin
  7104. if FIntf = nil then
  7105. begin
  7106. punk := GetServer;
  7107. Fintf:= punk as IADsNameTranslate;
  7108. end;
  7109. end;
  7110. procedure TNameTranslate.ConnectTo(svrIntf: IADsNameTranslate);
  7111. begin
  7112. Disconnect;
  7113. FIntf := svrIntf;
  7114. end;
  7115. procedure TNameTranslate.DisConnect;
  7116. begin
  7117. if Fintf <> nil then
  7118. begin
  7119. FIntf := nil;
  7120. end;
  7121. end;
  7122. function TNameTranslate.GetDefaultInterface: IADsNameTranslate;
  7123. begin
  7124. if FIntf = nil then
  7125. Connect;
  7126. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  7127. Result := FIntf;
  7128. end;
  7129. constructor TNameTranslate.Create(AOwner: TComponent);
  7130. begin
  7131. inherited Create(AOwner);
  7132. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7133. FProps := TNameTranslateProperties.Create(Self);
  7134. {$ENDIF}
  7135. end;
  7136. destructor TNameTranslate.Destroy;
  7137. begin
  7138. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7139. FProps.Free;
  7140. {$ENDIF}
  7141. inherited Destroy;
  7142. end;
  7143. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7144. function TNameTranslate.GetServerProperties: TNameTranslateProperties;
  7145. begin
  7146. Result := FProps;
  7147. end;
  7148. {$ENDIF}
  7149. procedure TNameTranslate.Set_ChaseReferral(Param1: Integer);
  7150. begin
  7151. DefaultInterface.Set_ChaseReferral(Param1);
  7152. end;
  7153. procedure TNameTranslate.Init(lnSetType: Integer; const bstrADsPath: WideString);
  7154. begin
  7155. DefaultInterface.Init(lnSetType, bstrADsPath);
  7156. end;
  7157. procedure TNameTranslate.InitEx(lnSetType: Integer; const bstrADsPath: WideString;
  7158. const bstrUserID: WideString; const bstrDomain: WideString;
  7159. const bstrPassword: WideString);
  7160. begin
  7161. DefaultInterface.InitEx(lnSetType, bstrADsPath, bstrUserID, bstrDomain, bstrPassword);
  7162. end;
  7163. procedure TNameTranslate.Set_(lnSetType: Integer; const bstrADsPath: WideString);
  7164. begin
  7165. DefaultInterface.Set_(lnSetType, bstrADsPath);
  7166. end;
  7167. function TNameTranslate.Get(lnFormatType: Integer): WideString;
  7168. begin
  7169. Result := DefaultInterface.Get(lnFormatType);
  7170. end;
  7171. procedure TNameTranslate.SetEx(lnFormatType: Integer; pVar: OleVariant);
  7172. begin
  7173. DefaultInterface.SetEx(lnFormatType, pVar);
  7174. end;
  7175. function TNameTranslate.GetEx(lnFormatType: Integer): OleVariant;
  7176. begin
  7177. Result := DefaultInterface.GetEx(lnFormatType);
  7178. end;
  7179. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7180. constructor TNameTranslateProperties.Create(AServer: TNameTranslate);
  7181. begin
  7182. inherited Create;
  7183. FServer := AServer;
  7184. end;
  7185. function TNameTranslateProperties.GetDefaultInterface: IADsNameTranslate;
  7186. begin
  7187. Result := FServer.DefaultInterface;
  7188. end;
  7189. procedure TNameTranslateProperties.Set_ChaseReferral(Param1: Integer);
  7190. begin
  7191. DefaultInterface.Set_ChaseReferral(Param1);
  7192. end;
  7193. {$ENDIF}
  7194. class function CoCaseIgnoreList.Create: IADsCaseIgnoreList;
  7195. begin
  7196. Result := CreateComObject(CLASS_CaseIgnoreList) as IADsCaseIgnoreList;
  7197. end;
  7198. class function CoCaseIgnoreList.CreateRemote(const MachineName: string): IADsCaseIgnoreList;
  7199. begin
  7200. Result := CreateRemoteComObject(MachineName, CLASS_CaseIgnoreList) as IADsCaseIgnoreList;
  7201. end;
  7202. procedure TCaseIgnoreList.InitServerData;
  7203. const
  7204. CServerData: TServerData = (
  7205. ClassID: '{15F88A55-4680-11D1-A3B4-00C04FB950DC}';
  7206. IntfIID: '{7B66B533-4680-11D1-A3B4-00C04FB950DC}';
  7207. EventIID: '';
  7208. LicenseKey: nil;
  7209. Version: 500);
  7210. begin
  7211. ServerData := @CServerData;
  7212. end;
  7213. procedure TCaseIgnoreList.Connect;
  7214. var
  7215. punk: IUnknown;
  7216. begin
  7217. if FIntf = nil then
  7218. begin
  7219. punk := GetServer;
  7220. Fintf:= punk as IADsCaseIgnoreList;
  7221. end;
  7222. end;
  7223. procedure TCaseIgnoreList.ConnectTo(svrIntf: IADsCaseIgnoreList);
  7224. begin
  7225. Disconnect;
  7226. FIntf := svrIntf;
  7227. end;
  7228. procedure TCaseIgnoreList.DisConnect;
  7229. begin
  7230. if Fintf <> nil then
  7231. begin
  7232. FIntf := nil;
  7233. end;
  7234. end;
  7235. function TCaseIgnoreList.GetDefaultInterface: IADsCaseIgnoreList;
  7236. begin
  7237. if FIntf = nil then
  7238. Connect;
  7239. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  7240. Result := FIntf;
  7241. end;
  7242. constructor TCaseIgnoreList.Create(AOwner: TComponent);
  7243. begin
  7244. inherited Create(AOwner);
  7245. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7246. FProps := TCaseIgnoreListProperties.Create(Self);
  7247. {$ENDIF}
  7248. end;
  7249. destructor TCaseIgnoreList.Destroy;
  7250. begin
  7251. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7252. FProps.Free;
  7253. {$ENDIF}
  7254. inherited Destroy;
  7255. end;
  7256. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7257. function TCaseIgnoreList.GetServerProperties: TCaseIgnoreListProperties;
  7258. begin
  7259. Result := FProps;
  7260. end;
  7261. {$ENDIF}
  7262. function TCaseIgnoreList.Get_CaseIgnoreList: OleVariant;
  7263. begin
  7264. Result := DefaultInterface.Get_CaseIgnoreList;
  7265. end;
  7266. procedure TCaseIgnoreList.Set_CaseIgnoreList(retval: OleVariant);
  7267. begin
  7268. DefaultInterface.Set_CaseIgnoreList(retval);
  7269. end;
  7270. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7271. constructor TCaseIgnoreListProperties.Create(AServer: TCaseIgnoreList);
  7272. begin
  7273. inherited Create;
  7274. FServer := AServer;
  7275. end;
  7276. function TCaseIgnoreListProperties.GetDefaultInterface: IADsCaseIgnoreList;
  7277. begin
  7278. Result := FServer.DefaultInterface;
  7279. end;
  7280. function TCaseIgnoreListProperties.Get_CaseIgnoreList: OleVariant;
  7281. begin
  7282. Result := DefaultInterface.Get_CaseIgnoreList;
  7283. end;
  7284. procedure TCaseIgnoreListProperties.Set_CaseIgnoreList(retval: OleVariant);
  7285. begin
  7286. DefaultInterface.Set_CaseIgnoreList(retval);
  7287. end;
  7288. {$ENDIF}
  7289. class function CoFaxNumber.Create: IADsFaxNumber;
  7290. begin
  7291. Result := CreateComObject(CLASS_FaxNumber) as IADsFaxNumber;
  7292. end;
  7293. class function CoFaxNumber.CreateRemote(const MachineName: string): IADsFaxNumber;
  7294. begin
  7295. Result := CreateRemoteComObject(MachineName, CLASS_FaxNumber) as IADsFaxNumber;
  7296. end;
  7297. procedure TFaxNumber.InitServerData;
  7298. const
  7299. CServerData: TServerData = (
  7300. ClassID: '{A5062215-4681-11D1-A3B4-00C04FB950DC}';
  7301. IntfIID: '{A910DEA9-4680-11D1-A3B4-00C04FB950DC}';
  7302. EventIID: '';
  7303. LicenseKey: nil;
  7304. Version: 500);
  7305. begin
  7306. ServerData := @CServerData;
  7307. end;
  7308. procedure TFaxNumber.Connect;
  7309. var
  7310. punk: IUnknown;
  7311. begin
  7312. if FIntf = nil then
  7313. begin
  7314. punk := GetServer;
  7315. Fintf:= punk as IADsFaxNumber;
  7316. end;
  7317. end;
  7318. procedure TFaxNumber.ConnectTo(svrIntf: IADsFaxNumber);
  7319. begin
  7320. Disconnect;
  7321. FIntf := svrIntf;
  7322. end;
  7323. procedure TFaxNumber.DisConnect;
  7324. begin
  7325. if Fintf <> nil then
  7326. begin
  7327. FIntf := nil;
  7328. end;
  7329. end;
  7330. function TFaxNumber.GetDefaultInterface: IADsFaxNumber;
  7331. begin
  7332. if FIntf = nil then
  7333. Connect;
  7334. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  7335. Result := FIntf;
  7336. end;
  7337. constructor TFaxNumber.Create(AOwner: TComponent);
  7338. begin
  7339. inherited Create(AOwner);
  7340. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7341. FProps := TFaxNumberProperties.Create(Self);
  7342. {$ENDIF}
  7343. end;
  7344. destructor TFaxNumber.Destroy;
  7345. begin
  7346. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7347. FProps.Free;
  7348. {$ENDIF}
  7349. inherited Destroy;
  7350. end;
  7351. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7352. function TFaxNumber.GetServerProperties: TFaxNumberProperties;
  7353. begin
  7354. Result := FProps;
  7355. end;
  7356. {$ENDIF}
  7357. function TFaxNumber.Get_TelephoneNumber: WideString;
  7358. begin
  7359. Result := DefaultInterface.Get_TelephoneNumber;
  7360. end;
  7361. procedure TFaxNumber.Set_TelephoneNumber(const retval: WideString);
  7362. begin
  7363. DefaultInterface.Set_TelephoneNumber(retval);
  7364. end;
  7365. function TFaxNumber.Get_Parameters: OleVariant;
  7366. begin
  7367. Result := DefaultInterface.Get_Parameters;
  7368. end;
  7369. procedure TFaxNumber.Set_Parameters(retval: OleVariant);
  7370. begin
  7371. DefaultInterface.Set_Parameters(retval);
  7372. end;
  7373. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7374. constructor TFaxNumberProperties.Create(AServer: TFaxNumber);
  7375. begin
  7376. inherited Create;
  7377. FServer := AServer;
  7378. end;
  7379. function TFaxNumberProperties.GetDefaultInterface: IADsFaxNumber;
  7380. begin
  7381. Result := FServer.DefaultInterface;
  7382. end;
  7383. function TFaxNumberProperties.Get_TelephoneNumber: WideString;
  7384. begin
  7385. Result := DefaultInterface.Get_TelephoneNumber;
  7386. end;
  7387. procedure TFaxNumberProperties.Set_TelephoneNumber(const retval: WideString);
  7388. begin
  7389. DefaultInterface.Set_TelephoneNumber(retval);
  7390. end;
  7391. function TFaxNumberProperties.Get_Parameters: OleVariant;
  7392. begin
  7393. Result := DefaultInterface.Get_Parameters;
  7394. end;
  7395. procedure TFaxNumberProperties.Set_Parameters(retval: OleVariant);
  7396. begin
  7397. DefaultInterface.Set_Parameters(retval);
  7398. end;
  7399. {$ENDIF}
  7400. class function CoNetAddress.Create: IADsNetAddress;
  7401. begin
  7402. Result := CreateComObject(CLASS_NetAddress) as IADsNetAddress;
  7403. end;
  7404. class function CoNetAddress.CreateRemote(const MachineName: string): IADsNetAddress;
  7405. begin
  7406. Result := CreateRemoteComObject(MachineName, CLASS_NetAddress) as IADsNetAddress;
  7407. end;
  7408. procedure TNetAddress.InitServerData;
  7409. const
  7410. CServerData: TServerData = (
  7411. ClassID: '{B0B71247-4080-11D1-A3AC-00C04FB950DC}';
  7412. IntfIID: '{B21A50A9-4080-11D1-A3AC-00C04FB950DC}';
  7413. EventIID: '';
  7414. LicenseKey: nil;
  7415. Version: 500);
  7416. begin
  7417. ServerData := @CServerData;
  7418. end;
  7419. procedure TNetAddress.Connect;
  7420. var
  7421. punk: IUnknown;
  7422. begin
  7423. if FIntf = nil then
  7424. begin
  7425. punk := GetServer;
  7426. Fintf:= punk as IADsNetAddress;
  7427. end;
  7428. end;
  7429. procedure TNetAddress.ConnectTo(svrIntf: IADsNetAddress);
  7430. begin
  7431. Disconnect;
  7432. FIntf := svrIntf;
  7433. end;
  7434. procedure TNetAddress.DisConnect;
  7435. begin
  7436. if Fintf <> nil then
  7437. begin
  7438. FIntf := nil;
  7439. end;
  7440. end;
  7441. function TNetAddress.GetDefaultInterface: IADsNetAddress;
  7442. begin
  7443. if FIntf = nil then
  7444. Connect;
  7445. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  7446. Result := FIntf;
  7447. end;
  7448. constructor TNetAddress.Create(AOwner: TComponent);
  7449. begin
  7450. inherited Create(AOwner);
  7451. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7452. FProps := TNetAddressProperties.Create(Self);
  7453. {$ENDIF}
  7454. end;
  7455. destructor TNetAddress.Destroy;
  7456. begin
  7457. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7458. FProps.Free;
  7459. {$ENDIF}
  7460. inherited Destroy;
  7461. end;
  7462. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7463. function TNetAddress.GetServerProperties: TNetAddressProperties;
  7464. begin
  7465. Result := FProps;
  7466. end;
  7467. {$ENDIF}
  7468. function TNetAddress.Get_AddressType: Integer;
  7469. begin
  7470. Result := DefaultInterface.Get_AddressType;
  7471. end;
  7472. procedure TNetAddress.Set_AddressType(retval: Integer);
  7473. begin
  7474. DefaultInterface.Set_AddressType(retval);
  7475. end;
  7476. function TNetAddress.Get_Address: OleVariant;
  7477. begin
  7478. Result := DefaultInterface.Get_Address;
  7479. end;
  7480. procedure TNetAddress.Set_Address(retval: OleVariant);
  7481. begin
  7482. DefaultInterface.Set_Address(retval);
  7483. end;
  7484. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7485. constructor TNetAddressProperties.Create(AServer: TNetAddress);
  7486. begin
  7487. inherited Create;
  7488. FServer := AServer;
  7489. end;
  7490. function TNetAddressProperties.GetDefaultInterface: IADsNetAddress;
  7491. begin
  7492. Result := FServer.DefaultInterface;
  7493. end;
  7494. function TNetAddressProperties.Get_AddressType: Integer;
  7495. begin
  7496. Result := DefaultInterface.Get_AddressType;
  7497. end;
  7498. procedure TNetAddressProperties.Set_AddressType(retval: Integer);
  7499. begin
  7500. DefaultInterface.Set_AddressType(retval);
  7501. end;
  7502. function TNetAddressProperties.Get_Address: OleVariant;
  7503. begin
  7504. Result := DefaultInterface.Get_Address;
  7505. end;
  7506. procedure TNetAddressProperties.Set_Address(retval: OleVariant);
  7507. begin
  7508. DefaultInterface.Set_Address(retval);
  7509. end;
  7510. {$ENDIF}
  7511. class function CoOctetList.Create: IADsOctetList;
  7512. begin
  7513. Result := CreateComObject(CLASS_OctetList) as IADsOctetList;
  7514. end;
  7515. class function CoOctetList.CreateRemote(const MachineName: string): IADsOctetList;
  7516. begin
  7517. Result := CreateRemoteComObject(MachineName, CLASS_OctetList) as IADsOctetList;
  7518. end;
  7519. procedure TOctetList.InitServerData;
  7520. const
  7521. CServerData: TServerData = (
  7522. ClassID: '{1241400F-4680-11D1-A3B4-00C04FB950DC}';
  7523. IntfIID: '{7B28B80F-4680-11D1-A3B4-00C04FB950DC}';
  7524. EventIID: '';
  7525. LicenseKey: nil;
  7526. Version: 500);
  7527. begin
  7528. ServerData := @CServerData;
  7529. end;
  7530. procedure TOctetList.Connect;
  7531. var
  7532. punk: IUnknown;
  7533. begin
  7534. if FIntf = nil then
  7535. begin
  7536. punk := GetServer;
  7537. Fintf:= punk as IADsOctetList;
  7538. end;
  7539. end;
  7540. procedure TOctetList.ConnectTo(svrIntf: IADsOctetList);
  7541. begin
  7542. Disconnect;
  7543. FIntf := svrIntf;
  7544. end;
  7545. procedure TOctetList.DisConnect;
  7546. begin
  7547. if Fintf <> nil then
  7548. begin
  7549. FIntf := nil;
  7550. end;
  7551. end;
  7552. function TOctetList.GetDefaultInterface: IADsOctetList;
  7553. begin
  7554. if FIntf = nil then
  7555. Connect;
  7556. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  7557. Result := FIntf;
  7558. end;
  7559. constructor TOctetList.Create(AOwner: TComponent);
  7560. begin
  7561. inherited Create(AOwner);
  7562. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7563. FProps := TOctetListProperties.Create(Self);
  7564. {$ENDIF}
  7565. end;
  7566. destructor TOctetList.Destroy;
  7567. begin
  7568. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7569. FProps.Free;
  7570. {$ENDIF}
  7571. inherited Destroy;
  7572. end;
  7573. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7574. function TOctetList.GetServerProperties: TOctetListProperties;
  7575. begin
  7576. Result := FProps;
  7577. end;
  7578. {$ENDIF}
  7579. function TOctetList.Get_OctetList: OleVariant;
  7580. begin
  7581. Result := DefaultInterface.Get_OctetList;
  7582. end;
  7583. procedure TOctetList.Set_OctetList(retval: OleVariant);
  7584. begin
  7585. DefaultInterface.Set_OctetList(retval);
  7586. end;
  7587. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7588. constructor TOctetListProperties.Create(AServer: TOctetList);
  7589. begin
  7590. inherited Create;
  7591. FServer := AServer;
  7592. end;
  7593. function TOctetListProperties.GetDefaultInterface: IADsOctetList;
  7594. begin
  7595. Result := FServer.DefaultInterface;
  7596. end;
  7597. function TOctetListProperties.Get_OctetList: OleVariant;
  7598. begin
  7599. Result := DefaultInterface.Get_OctetList;
  7600. end;
  7601. procedure TOctetListProperties.Set_OctetList(retval: OleVariant);
  7602. begin
  7603. DefaultInterface.Set_OctetList(retval);
  7604. end;
  7605. {$ENDIF}
  7606. class function CoEmail.Create: IADsEmail;
  7607. begin
  7608. Result := CreateComObject(CLASS_Email) as IADsEmail;
  7609. end;
  7610. class function CoEmail.CreateRemote(const MachineName: string): IADsEmail;
  7611. begin
  7612. Result := CreateRemoteComObject(MachineName, CLASS_Email) as IADsEmail;
  7613. end;
  7614. procedure TEmail.InitServerData;
  7615. const
  7616. CServerData: TServerData = (
  7617. ClassID: '{8F92A857-478E-11D1-A3B4-00C04FB950DC}';
  7618. IntfIID: '{97AF011A-478E-11D1-A3B4-00C04FB950DC}';
  7619. EventIID: '';
  7620. LicenseKey: nil;
  7621. Version: 500);
  7622. begin
  7623. ServerData := @CServerData;
  7624. end;
  7625. procedure TEmail.Connect;
  7626. var
  7627. punk: IUnknown;
  7628. begin
  7629. if FIntf = nil then
  7630. begin
  7631. punk := GetServer;
  7632. Fintf:= punk as IADsEmail;
  7633. end;
  7634. end;
  7635. procedure TEmail.ConnectTo(svrIntf: IADsEmail);
  7636. begin
  7637. Disconnect;
  7638. FIntf := svrIntf;
  7639. end;
  7640. procedure TEmail.DisConnect;
  7641. begin
  7642. if Fintf <> nil then
  7643. begin
  7644. FIntf := nil;
  7645. end;
  7646. end;
  7647. function TEmail.GetDefaultInterface: IADsEmail;
  7648. begin
  7649. if FIntf = nil then
  7650. Connect;
  7651. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  7652. Result := FIntf;
  7653. end;
  7654. constructor TEmail.Create(AOwner: TComponent);
  7655. begin
  7656. inherited Create(AOwner);
  7657. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7658. FProps := TEmailProperties.Create(Self);
  7659. {$ENDIF}
  7660. end;
  7661. destructor TEmail.Destroy;
  7662. begin
  7663. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7664. FProps.Free;
  7665. {$ENDIF}
  7666. inherited Destroy;
  7667. end;
  7668. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7669. function TEmail.GetServerProperties: TEmailProperties;
  7670. begin
  7671. Result := FProps;
  7672. end;
  7673. {$ENDIF}
  7674. function TEmail.Get_Type_: Integer;
  7675. begin
  7676. Result := DefaultInterface.Get_Type_;
  7677. end;
  7678. procedure TEmail.Set_Type_(retval: Integer);
  7679. begin
  7680. DefaultInterface.Set_Type_(retval);
  7681. end;
  7682. function TEmail.Get_Address: WideString;
  7683. begin
  7684. Result := DefaultInterface.Get_Address;
  7685. end;
  7686. procedure TEmail.Set_Address(const retval: WideString);
  7687. begin
  7688. DefaultInterface.Set_Address(retval);
  7689. end;
  7690. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7691. constructor TEmailProperties.Create(AServer: TEmail);
  7692. begin
  7693. inherited Create;
  7694. FServer := AServer;
  7695. end;
  7696. function TEmailProperties.GetDefaultInterface: IADsEmail;
  7697. begin
  7698. Result := FServer.DefaultInterface;
  7699. end;
  7700. function TEmailProperties.Get_Type_: Integer;
  7701. begin
  7702. Result := DefaultInterface.Get_Type_;
  7703. end;
  7704. procedure TEmailProperties.Set_Type_(retval: Integer);
  7705. begin
  7706. DefaultInterface.Set_Type_(retval);
  7707. end;
  7708. function TEmailProperties.Get_Address: WideString;
  7709. begin
  7710. Result := DefaultInterface.Get_Address;
  7711. end;
  7712. procedure TEmailProperties.Set_Address(const retval: WideString);
  7713. begin
  7714. DefaultInterface.Set_Address(retval);
  7715. end;
  7716. {$ENDIF}
  7717. class function CoPath.Create: IADsPath;
  7718. begin
  7719. Result := CreateComObject(CLASS_Path) as IADsPath;
  7720. end;
  7721. class function CoPath.CreateRemote(const MachineName: string): IADsPath;
  7722. begin
  7723. Result := CreateRemoteComObject(MachineName, CLASS_Path) as IADsPath;
  7724. end;
  7725. procedure TPath.InitServerData;
  7726. const
  7727. CServerData: TServerData = (
  7728. ClassID: '{B2538919-4080-11D1-A3AC-00C04FB950DC}';
  7729. IntfIID: '{B287FCD5-4080-11D1-A3AC-00C04FB950DC}';
  7730. EventIID: '';
  7731. LicenseKey: nil;
  7732. Version: 500);
  7733. begin
  7734. ServerData := @CServerData;
  7735. end;
  7736. procedure TPath.Connect;
  7737. var
  7738. punk: IUnknown;
  7739. begin
  7740. if FIntf = nil then
  7741. begin
  7742. punk := GetServer;
  7743. Fintf:= punk as IADsPath;
  7744. end;
  7745. end;
  7746. procedure TPath.ConnectTo(svrIntf: IADsPath);
  7747. begin
  7748. Disconnect;
  7749. FIntf := svrIntf;
  7750. end;
  7751. procedure TPath.DisConnect;
  7752. begin
  7753. if Fintf <> nil then
  7754. begin
  7755. FIntf := nil;
  7756. end;
  7757. end;
  7758. function TPath.GetDefaultInterface: IADsPath;
  7759. begin
  7760. if FIntf = nil then
  7761. Connect;
  7762. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  7763. Result := FIntf;
  7764. end;
  7765. constructor TPath.Create(AOwner: TComponent);
  7766. begin
  7767. inherited Create(AOwner);
  7768. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7769. FProps := TPathProperties.Create(Self);
  7770. {$ENDIF}
  7771. end;
  7772. destructor TPath.Destroy;
  7773. begin
  7774. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7775. FProps.Free;
  7776. {$ENDIF}
  7777. inherited Destroy;
  7778. end;
  7779. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7780. function TPath.GetServerProperties: TPathProperties;
  7781. begin
  7782. Result := FProps;
  7783. end;
  7784. {$ENDIF}
  7785. function TPath.Get_Type_: Integer;
  7786. begin
  7787. Result := DefaultInterface.Get_Type_;
  7788. end;
  7789. procedure TPath.Set_Type_(retval: Integer);
  7790. begin
  7791. DefaultInterface.Set_Type_(retval);
  7792. end;
  7793. function TPath.Get_VolumeName: WideString;
  7794. begin
  7795. Result := DefaultInterface.Get_VolumeName;
  7796. end;
  7797. procedure TPath.Set_VolumeName(const retval: WideString);
  7798. begin
  7799. DefaultInterface.Set_VolumeName(retval);
  7800. end;
  7801. function TPath.Get_Path: WideString;
  7802. begin
  7803. Result := DefaultInterface.Get_Path;
  7804. end;
  7805. procedure TPath.Set_Path(const retval: WideString);
  7806. begin
  7807. DefaultInterface.Set_Path(retval);
  7808. end;
  7809. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7810. constructor TPathProperties.Create(AServer: TPath);
  7811. begin
  7812. inherited Create;
  7813. FServer := AServer;
  7814. end;
  7815. function TPathProperties.GetDefaultInterface: IADsPath;
  7816. begin
  7817. Result := FServer.DefaultInterface;
  7818. end;
  7819. function TPathProperties.Get_Type_: Integer;
  7820. begin
  7821. Result := DefaultInterface.Get_Type_;
  7822. end;
  7823. procedure TPathProperties.Set_Type_(retval: Integer);
  7824. begin
  7825. DefaultInterface.Set_Type_(retval);
  7826. end;
  7827. function TPathProperties.Get_VolumeName: WideString;
  7828. begin
  7829. Result := DefaultInterface.Get_VolumeName;
  7830. end;
  7831. procedure TPathProperties.Set_VolumeName(const retval: WideString);
  7832. begin
  7833. DefaultInterface.Set_VolumeName(retval);
  7834. end;
  7835. function TPathProperties.Get_Path: WideString;
  7836. begin
  7837. Result := DefaultInterface.Get_Path;
  7838. end;
  7839. procedure TPathProperties.Set_Path(const retval: WideString);
  7840. begin
  7841. DefaultInterface.Set_Path(retval);
  7842. end;
  7843. {$ENDIF}
  7844. class function CoReplicaPointer.Create: IADsReplicaPointer;
  7845. begin
  7846. Result := CreateComObject(CLASS_ReplicaPointer) as IADsReplicaPointer;
  7847. end;
  7848. class function CoReplicaPointer.CreateRemote(const MachineName: string): IADsReplicaPointer;
  7849. begin
  7850. Result := CreateRemoteComObject(MachineName, CLASS_ReplicaPointer) as IADsReplicaPointer;
  7851. end;
  7852. procedure TReplicaPointer.InitServerData;
  7853. const
  7854. CServerData: TServerData = (
  7855. ClassID: '{F5D1BADF-4080-11D1-A3AC-00C04FB950DC}';
  7856. IntfIID: '{F60FB803-4080-11D1-A3AC-00C04FB950DC}';
  7857. EventIID: '';
  7858. LicenseKey: nil;
  7859. Version: 500);
  7860. begin
  7861. ServerData := @CServerData;
  7862. end;
  7863. procedure TReplicaPointer.Connect;
  7864. var
  7865. punk: IUnknown;
  7866. begin
  7867. if FIntf = nil then
  7868. begin
  7869. punk := GetServer;
  7870. Fintf:= punk as IADsReplicaPointer;
  7871. end;
  7872. end;
  7873. procedure TReplicaPointer.ConnectTo(svrIntf: IADsReplicaPointer);
  7874. begin
  7875. Disconnect;
  7876. FIntf := svrIntf;
  7877. end;
  7878. procedure TReplicaPointer.DisConnect;
  7879. begin
  7880. if Fintf <> nil then
  7881. begin
  7882. FIntf := nil;
  7883. end;
  7884. end;
  7885. function TReplicaPointer.GetDefaultInterface: IADsReplicaPointer;
  7886. begin
  7887. if FIntf = nil then
  7888. Connect;
  7889. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  7890. Result := FIntf;
  7891. end;
  7892. constructor TReplicaPointer.Create(AOwner: TComponent);
  7893. begin
  7894. inherited Create(AOwner);
  7895. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7896. FProps := TReplicaPointerProperties.Create(Self);
  7897. {$ENDIF}
  7898. end;
  7899. destructor TReplicaPointer.Destroy;
  7900. begin
  7901. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7902. FProps.Free;
  7903. {$ENDIF}
  7904. inherited Destroy;
  7905. end;
  7906. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7907. function TReplicaPointer.GetServerProperties: TReplicaPointerProperties;
  7908. begin
  7909. Result := FProps;
  7910. end;
  7911. {$ENDIF}
  7912. function TReplicaPointer.Get_ServerName: WideString;
  7913. begin
  7914. Result := DefaultInterface.Get_ServerName;
  7915. end;
  7916. procedure TReplicaPointer.Set_ServerName(const retval: WideString);
  7917. begin
  7918. DefaultInterface.Set_ServerName(retval);
  7919. end;
  7920. function TReplicaPointer.Get_ReplicaType: Integer;
  7921. begin
  7922. Result := DefaultInterface.Get_ReplicaType;
  7923. end;
  7924. procedure TReplicaPointer.Set_ReplicaType(retval: Integer);
  7925. begin
  7926. DefaultInterface.Set_ReplicaType(retval);
  7927. end;
  7928. function TReplicaPointer.Get_ReplicaNumber: Integer;
  7929. begin
  7930. Result := DefaultInterface.Get_ReplicaNumber;
  7931. end;
  7932. procedure TReplicaPointer.Set_ReplicaNumber(retval: Integer);
  7933. begin
  7934. DefaultInterface.Set_ReplicaNumber(retval);
  7935. end;
  7936. function TReplicaPointer.Get_Count: Integer;
  7937. begin
  7938. Result := DefaultInterface.Get_Count;
  7939. end;
  7940. procedure TReplicaPointer.Set_Count(retval: Integer);
  7941. begin
  7942. DefaultInterface.Set_Count(retval);
  7943. end;
  7944. function TReplicaPointer.Get_ReplicaAddressHints: OleVariant;
  7945. begin
  7946. Result := DefaultInterface.Get_ReplicaAddressHints;
  7947. end;
  7948. procedure TReplicaPointer.Set_ReplicaAddressHints(retval: OleVariant);
  7949. begin
  7950. DefaultInterface.Set_ReplicaAddressHints(retval);
  7951. end;
  7952. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  7953. constructor TReplicaPointerProperties.Create(AServer: TReplicaPointer);
  7954. begin
  7955. inherited Create;
  7956. FServer := AServer;
  7957. end;
  7958. function TReplicaPointerProperties.GetDefaultInterface: IADsReplicaPointer;
  7959. begin
  7960. Result := FServer.DefaultInterface;
  7961. end;
  7962. function TReplicaPointerProperties.Get_ServerName: WideString;
  7963. begin
  7964. Result := DefaultInterface.Get_ServerName;
  7965. end;
  7966. procedure TReplicaPointerProperties.Set_ServerName(const retval: WideString);
  7967. begin
  7968. DefaultInterface.Set_ServerName(retval);
  7969. end;
  7970. function TReplicaPointerProperties.Get_ReplicaType: Integer;
  7971. begin
  7972. Result := DefaultInterface.Get_ReplicaType;
  7973. end;
  7974. procedure TReplicaPointerProperties.Set_ReplicaType(retval: Integer);
  7975. begin
  7976. DefaultInterface.Set_ReplicaType(retval);
  7977. end;
  7978. function TReplicaPointerProperties.Get_ReplicaNumber: Integer;
  7979. begin
  7980. Result := DefaultInterface.Get_ReplicaNumber;
  7981. end;
  7982. procedure TReplicaPointerProperties.Set_ReplicaNumber(retval: Integer);
  7983. begin
  7984. DefaultInterface.Set_ReplicaNumber(retval);
  7985. end;
  7986. function TReplicaPointerProperties.Get_Count: Integer;
  7987. begin
  7988. Result := DefaultInterface.Get_Count;
  7989. end;
  7990. procedure TReplicaPointerProperties.Set_Count(retval: Integer);
  7991. begin
  7992. DefaultInterface.Set_Count(retval);
  7993. end;
  7994. function TReplicaPointerProperties.Get_ReplicaAddressHints: OleVariant;
  7995. begin
  7996. Result := DefaultInterface.Get_ReplicaAddressHints;
  7997. end;
  7998. procedure TReplicaPointerProperties.Set_ReplicaAddressHints(retval: OleVariant);
  7999. begin
  8000. DefaultInterface.Set_ReplicaAddressHints(retval);
  8001. end;
  8002. {$ENDIF}
  8003. class function CoAcl.Create: IADsAcl;
  8004. begin
  8005. Result := CreateComObject(CLASS_Acl) as IADsAcl;
  8006. end;
  8007. class function CoAcl.CreateRemote(const MachineName: string): IADsAcl;
  8008. begin
  8009. Result := CreateRemoteComObject(MachineName, CLASS_Acl) as IADsAcl;
  8010. end;
  8011. procedure TAcl.InitServerData;
  8012. const
  8013. CServerData: TServerData = (
  8014. ClassID: '{7AF1EFB6-0869-11D1-A377-00C04FB950DC}';
  8015. IntfIID: '{8452D3AB-0869-11D1-A377-00C04FB950DC}';
  8016. EventIID: '';
  8017. LicenseKey: nil;
  8018. Version: 500);
  8019. begin
  8020. ServerData := @CServerData;
  8021. end;
  8022. procedure TAcl.Connect;
  8023. var
  8024. punk: IUnknown;
  8025. begin
  8026. if FIntf = nil then
  8027. begin
  8028. punk := GetServer;
  8029. Fintf:= punk as IADsAcl;
  8030. end;
  8031. end;
  8032. procedure TAcl.ConnectTo(svrIntf: IADsAcl);
  8033. begin
  8034. Disconnect;
  8035. FIntf := svrIntf;
  8036. end;
  8037. procedure TAcl.DisConnect;
  8038. begin
  8039. if Fintf <> nil then
  8040. begin
  8041. FIntf := nil;
  8042. end;
  8043. end;
  8044. function TAcl.GetDefaultInterface: IADsAcl;
  8045. begin
  8046. if FIntf = nil then
  8047. Connect;
  8048. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  8049. Result := FIntf;
  8050. end;
  8051. constructor TAcl.Create(AOwner: TComponent);
  8052. begin
  8053. inherited Create(AOwner);
  8054. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8055. FProps := TAclProperties.Create(Self);
  8056. {$ENDIF}
  8057. end;
  8058. destructor TAcl.Destroy;
  8059. begin
  8060. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8061. FProps.Free;
  8062. {$ENDIF}
  8063. inherited Destroy;
  8064. end;
  8065. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8066. function TAcl.GetServerProperties: TAclProperties;
  8067. begin
  8068. Result := FProps;
  8069. end;
  8070. {$ENDIF}
  8071. function TAcl.Get_ProtectedAttrName: WideString;
  8072. begin
  8073. Result := DefaultInterface.Get_ProtectedAttrName;
  8074. end;
  8075. procedure TAcl.Set_ProtectedAttrName(const retval: WideString);
  8076. begin
  8077. DefaultInterface.Set_ProtectedAttrName(retval);
  8078. end;
  8079. function TAcl.Get_SubjectName: WideString;
  8080. begin
  8081. Result := DefaultInterface.Get_SubjectName;
  8082. end;
  8083. procedure TAcl.Set_SubjectName(const retval: WideString);
  8084. begin
  8085. DefaultInterface.Set_SubjectName(retval);
  8086. end;
  8087. function TAcl.Get_Privileges: Integer;
  8088. begin
  8089. Result := DefaultInterface.Get_Privileges;
  8090. end;
  8091. procedure TAcl.Set_Privileges(retval: Integer);
  8092. begin
  8093. DefaultInterface.Set_Privileges(retval);
  8094. end;
  8095. function TAcl.CopyAcl: IDispatch;
  8096. begin
  8097. Result := DefaultInterface.CopyAcl;
  8098. end;
  8099. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8100. constructor TAclProperties.Create(AServer: TAcl);
  8101. begin
  8102. inherited Create;
  8103. FServer := AServer;
  8104. end;
  8105. function TAclProperties.GetDefaultInterface: IADsAcl;
  8106. begin
  8107. Result := FServer.DefaultInterface;
  8108. end;
  8109. function TAclProperties.Get_ProtectedAttrName: WideString;
  8110. begin
  8111. Result := DefaultInterface.Get_ProtectedAttrName;
  8112. end;
  8113. procedure TAclProperties.Set_ProtectedAttrName(const retval: WideString);
  8114. begin
  8115. DefaultInterface.Set_ProtectedAttrName(retval);
  8116. end;
  8117. function TAclProperties.Get_SubjectName: WideString;
  8118. begin
  8119. Result := DefaultInterface.Get_SubjectName;
  8120. end;
  8121. procedure TAclProperties.Set_SubjectName(const retval: WideString);
  8122. begin
  8123. DefaultInterface.Set_SubjectName(retval);
  8124. end;
  8125. function TAclProperties.Get_Privileges: Integer;
  8126. begin
  8127. Result := DefaultInterface.Get_Privileges;
  8128. end;
  8129. procedure TAclProperties.Set_Privileges(retval: Integer);
  8130. begin
  8131. DefaultInterface.Set_Privileges(retval);
  8132. end;
  8133. {$ENDIF}
  8134. class function CoTimestamp.Create: IADsTimestamp;
  8135. begin
  8136. Result := CreateComObject(CLASS_Timestamp) as IADsTimestamp;
  8137. end;
  8138. class function CoTimestamp.CreateRemote(const MachineName: string): IADsTimestamp;
  8139. begin
  8140. Result := CreateRemoteComObject(MachineName, CLASS_Timestamp) as IADsTimestamp;
  8141. end;
  8142. procedure TTimestamp.InitServerData;
  8143. const
  8144. CServerData: TServerData = (
  8145. ClassID: '{B2BED2EB-4080-11D1-A3AC-00C04FB950DC}';
  8146. IntfIID: '{B2F5A901-4080-11D1-A3AC-00C04FB950DC}';
  8147. EventIID: '';
  8148. LicenseKey: nil;
  8149. Version: 500);
  8150. begin
  8151. ServerData := @CServerData;
  8152. end;
  8153. procedure TTimestamp.Connect;
  8154. var
  8155. punk: IUnknown;
  8156. begin
  8157. if FIntf = nil then
  8158. begin
  8159. punk := GetServer;
  8160. Fintf:= punk as IADsTimestamp;
  8161. end;
  8162. end;
  8163. procedure TTimestamp.ConnectTo(svrIntf: IADsTimestamp);
  8164. begin
  8165. Disconnect;
  8166. FIntf := svrIntf;
  8167. end;
  8168. procedure TTimestamp.DisConnect;
  8169. begin
  8170. if Fintf <> nil then
  8171. begin
  8172. FIntf := nil;
  8173. end;
  8174. end;
  8175. function TTimestamp.GetDefaultInterface: IADsTimestamp;
  8176. begin
  8177. if FIntf = nil then
  8178. Connect;
  8179. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  8180. Result := FIntf;
  8181. end;
  8182. constructor TTimestamp.Create(AOwner: TComponent);
  8183. begin
  8184. inherited Create(AOwner);
  8185. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8186. FProps := TTimestampProperties.Create(Self);
  8187. {$ENDIF}
  8188. end;
  8189. destructor TTimestamp.Destroy;
  8190. begin
  8191. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8192. FProps.Free;
  8193. {$ENDIF}
  8194. inherited Destroy;
  8195. end;
  8196. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8197. function TTimestamp.GetServerProperties: TTimestampProperties;
  8198. begin
  8199. Result := FProps;
  8200. end;
  8201. {$ENDIF}
  8202. function TTimestamp.Get_WholeSeconds: Integer;
  8203. begin
  8204. Result := DefaultInterface.Get_WholeSeconds;
  8205. end;
  8206. procedure TTimestamp.Set_WholeSeconds(retval: Integer);
  8207. begin
  8208. DefaultInterface.Set_WholeSeconds(retval);
  8209. end;
  8210. function TTimestamp.Get_EventID: Integer;
  8211. begin
  8212. Result := DefaultInterface.Get_EventID;
  8213. end;
  8214. procedure TTimestamp.Set_EventID(retval: Integer);
  8215. begin
  8216. DefaultInterface.Set_EventID(retval);
  8217. end;
  8218. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8219. constructor TTimestampProperties.Create(AServer: TTimestamp);
  8220. begin
  8221. inherited Create;
  8222. FServer := AServer;
  8223. end;
  8224. function TTimestampProperties.GetDefaultInterface: IADsTimestamp;
  8225. begin
  8226. Result := FServer.DefaultInterface;
  8227. end;
  8228. function TTimestampProperties.Get_WholeSeconds: Integer;
  8229. begin
  8230. Result := DefaultInterface.Get_WholeSeconds;
  8231. end;
  8232. procedure TTimestampProperties.Set_WholeSeconds(retval: Integer);
  8233. begin
  8234. DefaultInterface.Set_WholeSeconds(retval);
  8235. end;
  8236. function TTimestampProperties.Get_EventID: Integer;
  8237. begin
  8238. Result := DefaultInterface.Get_EventID;
  8239. end;
  8240. procedure TTimestampProperties.Set_EventID(retval: Integer);
  8241. begin
  8242. DefaultInterface.Set_EventID(retval);
  8243. end;
  8244. {$ENDIF}
  8245. class function CoPostalAddress.Create: IADsPostalAddress;
  8246. begin
  8247. Result := CreateComObject(CLASS_PostalAddress) as IADsPostalAddress;
  8248. end;
  8249. class function CoPostalAddress.CreateRemote(const MachineName: string): IADsPostalAddress;
  8250. begin
  8251. Result := CreateRemoteComObject(MachineName, CLASS_PostalAddress) as IADsPostalAddress;
  8252. end;
  8253. procedure TPostalAddress.InitServerData;
  8254. const
  8255. CServerData: TServerData = (
  8256. ClassID: '{0A75AFCD-4680-11D1-A3B4-00C04FB950DC}';
  8257. IntfIID: '{7ADECF29-4680-11D1-A3B4-00C04FB950DC}';
  8258. EventIID: '';
  8259. LicenseKey: nil;
  8260. Version: 500);
  8261. begin
  8262. ServerData := @CServerData;
  8263. end;
  8264. procedure TPostalAddress.Connect;
  8265. var
  8266. punk: IUnknown;
  8267. begin
  8268. if FIntf = nil then
  8269. begin
  8270. punk := GetServer;
  8271. Fintf:= punk as IADsPostalAddress;
  8272. end;
  8273. end;
  8274. procedure TPostalAddress.ConnectTo(svrIntf: IADsPostalAddress);
  8275. begin
  8276. Disconnect;
  8277. FIntf := svrIntf;
  8278. end;
  8279. procedure TPostalAddress.DisConnect;
  8280. begin
  8281. if Fintf <> nil then
  8282. begin
  8283. FIntf := nil;
  8284. end;
  8285. end;
  8286. function TPostalAddress.GetDefaultInterface: IADsPostalAddress;
  8287. begin
  8288. if FIntf = nil then
  8289. Connect;
  8290. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  8291. Result := FIntf;
  8292. end;
  8293. constructor TPostalAddress.Create(AOwner: TComponent);
  8294. begin
  8295. inherited Create(AOwner);
  8296. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8297. FProps := TPostalAddressProperties.Create(Self);
  8298. {$ENDIF}
  8299. end;
  8300. destructor TPostalAddress.Destroy;
  8301. begin
  8302. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8303. FProps.Free;
  8304. {$ENDIF}
  8305. inherited Destroy;
  8306. end;
  8307. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8308. function TPostalAddress.GetServerProperties: TPostalAddressProperties;
  8309. begin
  8310. Result := FProps;
  8311. end;
  8312. {$ENDIF}
  8313. function TPostalAddress.Get_PostalAddress: OleVariant;
  8314. begin
  8315. Result := DefaultInterface.Get_PostalAddress;
  8316. end;
  8317. procedure TPostalAddress.Set_PostalAddress(retval: OleVariant);
  8318. begin
  8319. DefaultInterface.Set_PostalAddress(retval);
  8320. end;
  8321. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8322. constructor TPostalAddressProperties.Create(AServer: TPostalAddress);
  8323. begin
  8324. inherited Create;
  8325. FServer := AServer;
  8326. end;
  8327. function TPostalAddressProperties.GetDefaultInterface: IADsPostalAddress;
  8328. begin
  8329. Result := FServer.DefaultInterface;
  8330. end;
  8331. function TPostalAddressProperties.Get_PostalAddress: OleVariant;
  8332. begin
  8333. Result := DefaultInterface.Get_PostalAddress;
  8334. end;
  8335. procedure TPostalAddressProperties.Set_PostalAddress(retval: OleVariant);
  8336. begin
  8337. DefaultInterface.Set_PostalAddress(retval);
  8338. end;
  8339. {$ENDIF}
  8340. class function CoBackLink.Create: IADsBackLink;
  8341. begin
  8342. Result := CreateComObject(CLASS_BackLink) as IADsBackLink;
  8343. end;
  8344. class function CoBackLink.CreateRemote(const MachineName: string): IADsBackLink;
  8345. begin
  8346. Result := CreateRemoteComObject(MachineName, CLASS_BackLink) as IADsBackLink;
  8347. end;
  8348. procedure TBackLink.InitServerData;
  8349. const
  8350. CServerData: TServerData = (
  8351. ClassID: '{FCBF906F-4080-11D1-A3AC-00C04FB950DC}';
  8352. IntfIID: '{FD1302BD-4080-11D1-A3AC-00C04FB950DC}';
  8353. EventIID: '';
  8354. LicenseKey: nil;
  8355. Version: 500);
  8356. begin
  8357. ServerData := @CServerData;
  8358. end;
  8359. procedure TBackLink.Connect;
  8360. var
  8361. punk: IUnknown;
  8362. begin
  8363. if FIntf = nil then
  8364. begin
  8365. punk := GetServer;
  8366. Fintf:= punk as IADsBackLink;
  8367. end;
  8368. end;
  8369. procedure TBackLink.ConnectTo(svrIntf: IADsBackLink);
  8370. begin
  8371. Disconnect;
  8372. FIntf := svrIntf;
  8373. end;
  8374. procedure TBackLink.DisConnect;
  8375. begin
  8376. if Fintf <> nil then
  8377. begin
  8378. FIntf := nil;
  8379. end;
  8380. end;
  8381. function TBackLink.GetDefaultInterface: IADsBackLink;
  8382. begin
  8383. if FIntf = nil then
  8384. Connect;
  8385. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  8386. Result := FIntf;
  8387. end;
  8388. constructor TBackLink.Create(AOwner: TComponent);
  8389. begin
  8390. inherited Create(AOwner);
  8391. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8392. FProps := TBackLinkProperties.Create(Self);
  8393. {$ENDIF}
  8394. end;
  8395. destructor TBackLink.Destroy;
  8396. begin
  8397. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8398. FProps.Free;
  8399. {$ENDIF}
  8400. inherited Destroy;
  8401. end;
  8402. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8403. function TBackLink.GetServerProperties: TBackLinkProperties;
  8404. begin
  8405. Result := FProps;
  8406. end;
  8407. {$ENDIF}
  8408. function TBackLink.Get_RemoteID: Integer;
  8409. begin
  8410. Result := DefaultInterface.Get_RemoteID;
  8411. end;
  8412. procedure TBackLink.Set_RemoteID(retval: Integer);
  8413. begin
  8414. DefaultInterface.Set_RemoteID(retval);
  8415. end;
  8416. function TBackLink.Get_ObjectName: WideString;
  8417. begin
  8418. Result := DefaultInterface.Get_ObjectName;
  8419. end;
  8420. procedure TBackLink.Set_ObjectName(const retval: WideString);
  8421. begin
  8422. DefaultInterface.Set_ObjectName(retval);
  8423. end;
  8424. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8425. constructor TBackLinkProperties.Create(AServer: TBackLink);
  8426. begin
  8427. inherited Create;
  8428. FServer := AServer;
  8429. end;
  8430. function TBackLinkProperties.GetDefaultInterface: IADsBackLink;
  8431. begin
  8432. Result := FServer.DefaultInterface;
  8433. end;
  8434. function TBackLinkProperties.Get_RemoteID: Integer;
  8435. begin
  8436. Result := DefaultInterface.Get_RemoteID;
  8437. end;
  8438. procedure TBackLinkProperties.Set_RemoteID(retval: Integer);
  8439. begin
  8440. DefaultInterface.Set_RemoteID(retval);
  8441. end;
  8442. function TBackLinkProperties.Get_ObjectName: WideString;
  8443. begin
  8444. Result := DefaultInterface.Get_ObjectName;
  8445. end;
  8446. procedure TBackLinkProperties.Set_ObjectName(const retval: WideString);
  8447. begin
  8448. DefaultInterface.Set_ObjectName(retval);
  8449. end;
  8450. {$ENDIF}
  8451. class function CoTypedName.Create: IADsTypedName;
  8452. begin
  8453. Result := CreateComObject(CLASS_TypedName) as IADsTypedName;
  8454. end;
  8455. class function CoTypedName.CreateRemote(const MachineName: string): IADsTypedName;
  8456. begin
  8457. Result := CreateRemoteComObject(MachineName, CLASS_TypedName) as IADsTypedName;
  8458. end;
  8459. procedure TTypedName.InitServerData;
  8460. const
  8461. CServerData: TServerData = (
  8462. ClassID: '{B33143CB-4080-11D1-A3AC-00C04FB950DC}';
  8463. IntfIID: '{B371A349-4080-11D1-A3AC-00C04FB950DC}';
  8464. EventIID: '';
  8465. LicenseKey: nil;
  8466. Version: 500);
  8467. begin
  8468. ServerData := @CServerData;
  8469. end;
  8470. procedure TTypedName.Connect;
  8471. var
  8472. punk: IUnknown;
  8473. begin
  8474. if FIntf = nil then
  8475. begin
  8476. punk := GetServer;
  8477. Fintf:= punk as IADsTypedName;
  8478. end;
  8479. end;
  8480. procedure TTypedName.ConnectTo(svrIntf: IADsTypedName);
  8481. begin
  8482. Disconnect;
  8483. FIntf := svrIntf;
  8484. end;
  8485. procedure TTypedName.DisConnect;
  8486. begin
  8487. if Fintf <> nil then
  8488. begin
  8489. FIntf := nil;
  8490. end;
  8491. end;
  8492. function TTypedName.GetDefaultInterface: IADsTypedName;
  8493. begin
  8494. if FIntf = nil then
  8495. Connect;
  8496. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  8497. Result := FIntf;
  8498. end;
  8499. constructor TTypedName.Create(AOwner: TComponent);
  8500. begin
  8501. inherited Create(AOwner);
  8502. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8503. FProps := TTypedNameProperties.Create(Self);
  8504. {$ENDIF}
  8505. end;
  8506. destructor TTypedName.Destroy;
  8507. begin
  8508. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8509. FProps.Free;
  8510. {$ENDIF}
  8511. inherited Destroy;
  8512. end;
  8513. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8514. function TTypedName.GetServerProperties: TTypedNameProperties;
  8515. begin
  8516. Result := FProps;
  8517. end;
  8518. {$ENDIF}
  8519. function TTypedName.Get_ObjectName: WideString;
  8520. begin
  8521. Result := DefaultInterface.Get_ObjectName;
  8522. end;
  8523. procedure TTypedName.Set_ObjectName(const retval: WideString);
  8524. begin
  8525. DefaultInterface.Set_ObjectName(retval);
  8526. end;
  8527. function TTypedName.Get_Level: Integer;
  8528. begin
  8529. Result := DefaultInterface.Get_Level;
  8530. end;
  8531. procedure TTypedName.Set_Level(retval: Integer);
  8532. begin
  8533. DefaultInterface.Set_Level(retval);
  8534. end;
  8535. function TTypedName.Get_Interval: Integer;
  8536. begin
  8537. Result := DefaultInterface.Get_Interval;
  8538. end;
  8539. procedure TTypedName.Set_Interval(retval: Integer);
  8540. begin
  8541. DefaultInterface.Set_Interval(retval);
  8542. end;
  8543. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8544. constructor TTypedNameProperties.Create(AServer: TTypedName);
  8545. begin
  8546. inherited Create;
  8547. FServer := AServer;
  8548. end;
  8549. function TTypedNameProperties.GetDefaultInterface: IADsTypedName;
  8550. begin
  8551. Result := FServer.DefaultInterface;
  8552. end;
  8553. function TTypedNameProperties.Get_ObjectName: WideString;
  8554. begin
  8555. Result := DefaultInterface.Get_ObjectName;
  8556. end;
  8557. procedure TTypedNameProperties.Set_ObjectName(const retval: WideString);
  8558. begin
  8559. DefaultInterface.Set_ObjectName(retval);
  8560. end;
  8561. function TTypedNameProperties.Get_Level: Integer;
  8562. begin
  8563. Result := DefaultInterface.Get_Level;
  8564. end;
  8565. procedure TTypedNameProperties.Set_Level(retval: Integer);
  8566. begin
  8567. DefaultInterface.Set_Level(retval);
  8568. end;
  8569. function TTypedNameProperties.Get_Interval: Integer;
  8570. begin
  8571. Result := DefaultInterface.Get_Interval;
  8572. end;
  8573. procedure TTypedNameProperties.Set_Interval(retval: Integer);
  8574. begin
  8575. DefaultInterface.Set_Interval(retval);
  8576. end;
  8577. {$ENDIF}
  8578. class function CoHold.Create: IADsHold;
  8579. begin
  8580. Result := CreateComObject(CLASS_Hold) as IADsHold;
  8581. end;
  8582. class function CoHold.CreateRemote(const MachineName: string): IADsHold;
  8583. begin
  8584. Result := CreateRemoteComObject(MachineName, CLASS_Hold) as IADsHold;
  8585. end;
  8586. procedure THold.InitServerData;
  8587. const
  8588. CServerData: TServerData = (
  8589. ClassID: '{B3AD3E13-4080-11D1-A3AC-00C04FB950DC}';
  8590. IntfIID: '{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}';
  8591. EventIID: '';
  8592. LicenseKey: nil;
  8593. Version: 500);
  8594. begin
  8595. ServerData := @CServerData;
  8596. end;
  8597. procedure THold.Connect;
  8598. var
  8599. punk: IUnknown;
  8600. begin
  8601. if FIntf = nil then
  8602. begin
  8603. punk := GetServer;
  8604. Fintf:= punk as IADsHold;
  8605. end;
  8606. end;
  8607. procedure THold.ConnectTo(svrIntf: IADsHold);
  8608. begin
  8609. Disconnect;
  8610. FIntf := svrIntf;
  8611. end;
  8612. procedure THold.DisConnect;
  8613. begin
  8614. if Fintf <> nil then
  8615. begin
  8616. FIntf := nil;
  8617. end;
  8618. end;
  8619. function THold.GetDefaultInterface: IADsHold;
  8620. begin
  8621. if FIntf = nil then
  8622. Connect;
  8623. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  8624. Result := FIntf;
  8625. end;
  8626. constructor THold.Create(AOwner: TComponent);
  8627. begin
  8628. inherited Create(AOwner);
  8629. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8630. FProps := THoldProperties.Create(Self);
  8631. {$ENDIF}
  8632. end;
  8633. destructor THold.Destroy;
  8634. begin
  8635. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8636. FProps.Free;
  8637. {$ENDIF}
  8638. inherited Destroy;
  8639. end;
  8640. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8641. function THold.GetServerProperties: THoldProperties;
  8642. begin
  8643. Result := FProps;
  8644. end;
  8645. {$ENDIF}
  8646. function THold.Get_ObjectName: WideString;
  8647. begin
  8648. Result := DefaultInterface.Get_ObjectName;
  8649. end;
  8650. procedure THold.Set_ObjectName(const retval: WideString);
  8651. begin
  8652. DefaultInterface.Set_ObjectName(retval);
  8653. end;
  8654. function THold.Get_Amount: Integer;
  8655. begin
  8656. Result := DefaultInterface.Get_Amount;
  8657. end;
  8658. procedure THold.Set_Amount(retval: Integer);
  8659. begin
  8660. DefaultInterface.Set_Amount(retval);
  8661. end;
  8662. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8663. constructor THoldProperties.Create(AServer: THold);
  8664. begin
  8665. inherited Create;
  8666. FServer := AServer;
  8667. end;
  8668. function THoldProperties.GetDefaultInterface: IADsHold;
  8669. begin
  8670. Result := FServer.DefaultInterface;
  8671. end;
  8672. function THoldProperties.Get_ObjectName: WideString;
  8673. begin
  8674. Result := DefaultInterface.Get_ObjectName;
  8675. end;
  8676. procedure THoldProperties.Set_ObjectName(const retval: WideString);
  8677. begin
  8678. DefaultInterface.Set_ObjectName(retval);
  8679. end;
  8680. function THoldProperties.Get_Amount: Integer;
  8681. begin
  8682. Result := DefaultInterface.Get_Amount;
  8683. end;
  8684. procedure THoldProperties.Set_Amount(retval: Integer);
  8685. begin
  8686. DefaultInterface.Set_Amount(retval);
  8687. end;
  8688. {$ENDIF}
  8689. class function CoPathname.Create: IADsPathname;
  8690. begin
  8691. Result := CreateComObject(CLASS_Pathname) as IADsPathname;
  8692. end;
  8693. class function CoPathname.CreateRemote(const MachineName: string): IADsPathname;
  8694. begin
  8695. Result := CreateRemoteComObject(MachineName, CLASS_Pathname) as IADsPathname;
  8696. end;
  8697. procedure TPathname.InitServerData;
  8698. const
  8699. CServerData: TServerData = (
  8700. ClassID: '{080D0D78-F421-11D0-A36E-00C04FB950DC}';
  8701. IntfIID: '{D592AED4-F420-11D0-A36E-00C04FB950DC}';
  8702. EventIID: '';
  8703. LicenseKey: nil;
  8704. Version: 500);
  8705. begin
  8706. ServerData := @CServerData;
  8707. end;
  8708. procedure TPathname.Connect;
  8709. var
  8710. punk: IUnknown;
  8711. begin
  8712. if FIntf = nil then
  8713. begin
  8714. punk := GetServer;
  8715. Fintf:= punk as IADsPathname;
  8716. end;
  8717. end;
  8718. procedure TPathname.ConnectTo(svrIntf: IADsPathname);
  8719. begin
  8720. Disconnect;
  8721. FIntf := svrIntf;
  8722. end;
  8723. procedure TPathname.DisConnect;
  8724. begin
  8725. if Fintf <> nil then
  8726. begin
  8727. FIntf := nil;
  8728. end;
  8729. end;
  8730. function TPathname.GetDefaultInterface: IADsPathname;
  8731. begin
  8732. if FIntf = nil then
  8733. Connect;
  8734. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  8735. Result := FIntf;
  8736. end;
  8737. constructor TPathname.Create(AOwner: TComponent);
  8738. begin
  8739. inherited Create(AOwner);
  8740. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8741. FProps := TPathnameProperties.Create(Self);
  8742. {$ENDIF}
  8743. end;
  8744. destructor TPathname.Destroy;
  8745. begin
  8746. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8747. FProps.Free;
  8748. {$ENDIF}
  8749. inherited Destroy;
  8750. end;
  8751. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8752. function TPathname.GetServerProperties: TPathnameProperties;
  8753. begin
  8754. Result := FProps;
  8755. end;
  8756. {$ENDIF}
  8757. function TPathname.Get_EscapedMode: Integer;
  8758. begin
  8759. Result := DefaultInterface.Get_EscapedMode;
  8760. end;
  8761. procedure TPathname.Set_EscapedMode(retval: Integer);
  8762. begin
  8763. DefaultInterface.Set_EscapedMode(retval);
  8764. end;
  8765. procedure TPathname.Set_(const bstrADsPath: WideString; lnSetType: Integer);
  8766. begin
  8767. DefaultInterface.Set_(bstrADsPath, lnSetType);
  8768. end;
  8769. procedure TPathname.SetDisplayType(lnDisplayType: Integer);
  8770. begin
  8771. DefaultInterface.SetDisplayType(lnDisplayType);
  8772. end;
  8773. function TPathname.Retrieve(lnFormatType: Integer): WideString;
  8774. begin
  8775. Result := DefaultInterface.Retrieve(lnFormatType);
  8776. end;
  8777. function TPathname.GetNumElements: Integer;
  8778. begin
  8779. Result := DefaultInterface.GetNumElements;
  8780. end;
  8781. function TPathname.GetElement(lnElementIndex: Integer): WideString;
  8782. begin
  8783. Result := DefaultInterface.GetElement(lnElementIndex);
  8784. end;
  8785. procedure TPathname.AddLeafElement(const bstrLeafElement: WideString);
  8786. begin
  8787. DefaultInterface.AddLeafElement(bstrLeafElement);
  8788. end;
  8789. procedure TPathname.RemoveLeafElement;
  8790. begin
  8791. DefaultInterface.RemoveLeafElement;
  8792. end;
  8793. function TPathname.CopyPath: IDispatch;
  8794. begin
  8795. Result := DefaultInterface.CopyPath;
  8796. end;
  8797. function TPathname.GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString;
  8798. begin
  8799. Result := DefaultInterface.GetEscapedElement(lnReserved, bstrInStr);
  8800. end;
  8801. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8802. constructor TPathnameProperties.Create(AServer: TPathname);
  8803. begin
  8804. inherited Create;
  8805. FServer := AServer;
  8806. end;
  8807. function TPathnameProperties.GetDefaultInterface: IADsPathname;
  8808. begin
  8809. Result := FServer.DefaultInterface;
  8810. end;
  8811. function TPathnameProperties.Get_EscapedMode: Integer;
  8812. begin
  8813. Result := DefaultInterface.Get_EscapedMode;
  8814. end;
  8815. procedure TPathnameProperties.Set_EscapedMode(retval: Integer);
  8816. begin
  8817. DefaultInterface.Set_EscapedMode(retval);
  8818. end;
  8819. {$ENDIF}
  8820. class function CoADSystemInfo.Create: IADsADSystemInfo;
  8821. begin
  8822. Result := CreateComObject(CLASS_ADSystemInfo) as IADsADSystemInfo;
  8823. end;
  8824. class function CoADSystemInfo.CreateRemote(const MachineName: string): IADsADSystemInfo;
  8825. begin
  8826. Result := CreateRemoteComObject(MachineName, CLASS_ADSystemInfo) as IADsADSystemInfo;
  8827. end;
  8828. procedure TADSystemInfo.InitServerData;
  8829. const
  8830. CServerData: TServerData = (
  8831. ClassID: '{50B6327F-AFD1-11D2-9CB9-0000F87A369E}';
  8832. IntfIID: '{5BB11929-AFD1-11D2-9CB9-0000F87A369E}';
  8833. EventIID: '';
  8834. LicenseKey: nil;
  8835. Version: 500);
  8836. begin
  8837. ServerData := @CServerData;
  8838. end;
  8839. procedure TADSystemInfo.Connect;
  8840. var
  8841. punk: IUnknown;
  8842. begin
  8843. if FIntf = nil then
  8844. begin
  8845. punk := GetServer;
  8846. Fintf:= punk as IADsADSystemInfo;
  8847. end;
  8848. end;
  8849. procedure TADSystemInfo.ConnectTo(svrIntf: IADsADSystemInfo);
  8850. begin
  8851. Disconnect;
  8852. FIntf := svrIntf;
  8853. end;
  8854. procedure TADSystemInfo.DisConnect;
  8855. begin
  8856. if Fintf <> nil then
  8857. begin
  8858. FIntf := nil;
  8859. end;
  8860. end;
  8861. function TADSystemInfo.GetDefaultInterface: IADsADSystemInfo;
  8862. begin
  8863. if FIntf = nil then
  8864. Connect;
  8865. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  8866. Result := FIntf;
  8867. end;
  8868. constructor TADSystemInfo.Create(AOwner: TComponent);
  8869. begin
  8870. inherited Create(AOwner);
  8871. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8872. FProps := TADSystemInfoProperties.Create(Self);
  8873. {$ENDIF}
  8874. end;
  8875. destructor TADSystemInfo.Destroy;
  8876. begin
  8877. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8878. FProps.Free;
  8879. {$ENDIF}
  8880. inherited Destroy;
  8881. end;
  8882. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8883. function TADSystemInfo.GetServerProperties: TADSystemInfoProperties;
  8884. begin
  8885. Result := FProps;
  8886. end;
  8887. {$ENDIF}
  8888. function TADSystemInfo.Get_UserName: WideString;
  8889. begin
  8890. Result := DefaultInterface.Get_UserName;
  8891. end;
  8892. function TADSystemInfo.Get_ComputerName: WideString;
  8893. begin
  8894. Result := DefaultInterface.Get_ComputerName;
  8895. end;
  8896. function TADSystemInfo.Get_SiteName: WideString;
  8897. begin
  8898. Result := DefaultInterface.Get_SiteName;
  8899. end;
  8900. function TADSystemInfo.Get_DomainShortName: WideString;
  8901. begin
  8902. Result := DefaultInterface.Get_DomainShortName;
  8903. end;
  8904. function TADSystemInfo.Get_DomainDNSName: WideString;
  8905. begin
  8906. Result := DefaultInterface.Get_DomainDNSName;
  8907. end;
  8908. function TADSystemInfo.Get_ForestDNSName: WideString;
  8909. begin
  8910. Result := DefaultInterface.Get_ForestDNSName;
  8911. end;
  8912. function TADSystemInfo.Get_PDCRoleOwner: WideString;
  8913. begin
  8914. Result := DefaultInterface.Get_PDCRoleOwner;
  8915. end;
  8916. function TADSystemInfo.Get_SchemaRoleOwner: WideString;
  8917. begin
  8918. Result := DefaultInterface.Get_SchemaRoleOwner;
  8919. end;
  8920. function TADSystemInfo.Get_IsNativeMode: WordBool;
  8921. begin
  8922. Result := DefaultInterface.Get_IsNativeMode;
  8923. end;
  8924. function TADSystemInfo.GetAnyDCName: WideString;
  8925. begin
  8926. Result := DefaultInterface.GetAnyDCName;
  8927. end;
  8928. function TADSystemInfo.GetDCSiteName(const szServer: WideString): WideString;
  8929. begin
  8930. Result := DefaultInterface.GetDCSiteName(szServer);
  8931. end;
  8932. procedure TADSystemInfo.RefreshSchemaCache;
  8933. begin
  8934. DefaultInterface.RefreshSchemaCache;
  8935. end;
  8936. function TADSystemInfo.GetTrees: OleVariant;
  8937. begin
  8938. Result := DefaultInterface.GetTrees;
  8939. end;
  8940. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  8941. constructor TADSystemInfoProperties.Create(AServer: TADSystemInfo);
  8942. begin
  8943. inherited Create;
  8944. FServer := AServer;
  8945. end;
  8946. function TADSystemInfoProperties.GetDefaultInterface: IADsADSystemInfo;
  8947. begin
  8948. Result := FServer.DefaultInterface;
  8949. end;
  8950. function TADSystemInfoProperties.Get_UserName: WideString;
  8951. begin
  8952. Result := DefaultInterface.Get_UserName;
  8953. end;
  8954. function TADSystemInfoProperties.Get_ComputerName: WideString;
  8955. begin
  8956. Result := DefaultInterface.Get_ComputerName;
  8957. end;
  8958. function TADSystemInfoProperties.Get_SiteName: WideString;
  8959. begin
  8960. Result := DefaultInterface.Get_SiteName;
  8961. end;
  8962. function TADSystemInfoProperties.Get_DomainShortName: WideString;
  8963. begin
  8964. Result := DefaultInterface.Get_DomainShortName;
  8965. end;
  8966. function TADSystemInfoProperties.Get_DomainDNSName: WideString;
  8967. begin
  8968. Result := DefaultInterface.Get_DomainDNSName;
  8969. end;
  8970. function TADSystemInfoProperties.Get_ForestDNSName: WideString;
  8971. begin
  8972. Result := DefaultInterface.Get_ForestDNSName;
  8973. end;
  8974. function TADSystemInfoProperties.Get_PDCRoleOwner: WideString;
  8975. begin
  8976. Result := DefaultInterface.Get_PDCRoleOwner;
  8977. end;
  8978. function TADSystemInfoProperties.Get_SchemaRoleOwner: WideString;
  8979. begin
  8980. Result := DefaultInterface.Get_SchemaRoleOwner;
  8981. end;
  8982. function TADSystemInfoProperties.Get_IsNativeMode: WordBool;
  8983. begin
  8984. Result := DefaultInterface.Get_IsNativeMode;
  8985. end;
  8986. {$ENDIF}
  8987. class function CoWinNTSystemInfo.Create: IADsWinNTSystemInfo;
  8988. begin
  8989. Result := CreateComObject(CLASS_WinNTSystemInfo) as IADsWinNTSystemInfo;
  8990. end;
  8991. class function CoWinNTSystemInfo.CreateRemote(const MachineName: string): IADsWinNTSystemInfo;
  8992. begin
  8993. Result := CreateRemoteComObject(MachineName, CLASS_WinNTSystemInfo) as IADsWinNTSystemInfo;
  8994. end;
  8995. procedure TWinNTSystemInfo.InitServerData;
  8996. const
  8997. CServerData: TServerData = (
  8998. ClassID: '{66182EC4-AFD1-11D2-9CB9-0000F87A369E}';
  8999. IntfIID: '{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}';
  9000. EventIID: '';
  9001. LicenseKey: nil;
  9002. Version: 500);
  9003. begin
  9004. ServerData := @CServerData;
  9005. end;
  9006. procedure TWinNTSystemInfo.Connect;
  9007. var
  9008. punk: IUnknown;
  9009. begin
  9010. if FIntf = nil then
  9011. begin
  9012. punk := GetServer;
  9013. Fintf:= punk as IADsWinNTSystemInfo;
  9014. end;
  9015. end;
  9016. procedure TWinNTSystemInfo.ConnectTo(svrIntf: IADsWinNTSystemInfo);
  9017. begin
  9018. Disconnect;
  9019. FIntf := svrIntf;
  9020. end;
  9021. procedure TWinNTSystemInfo.DisConnect;
  9022. begin
  9023. if Fintf <> nil then
  9024. begin
  9025. FIntf := nil;
  9026. end;
  9027. end;
  9028. function TWinNTSystemInfo.GetDefaultInterface: IADsWinNTSystemInfo;
  9029. begin
  9030. if FIntf = nil then
  9031. Connect;
  9032. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  9033. Result := FIntf;
  9034. end;
  9035. constructor TWinNTSystemInfo.Create(AOwner: TComponent);
  9036. begin
  9037. inherited Create(AOwner);
  9038. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9039. FProps := TWinNTSystemInfoProperties.Create(Self);
  9040. {$ENDIF}
  9041. end;
  9042. destructor TWinNTSystemInfo.Destroy;
  9043. begin
  9044. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9045. FProps.Free;
  9046. {$ENDIF}
  9047. inherited Destroy;
  9048. end;
  9049. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9050. function TWinNTSystemInfo.GetServerProperties: TWinNTSystemInfoProperties;
  9051. begin
  9052. Result := FProps;
  9053. end;
  9054. {$ENDIF}
  9055. function TWinNTSystemInfo.Get_UserName: WideString;
  9056. begin
  9057. Result := DefaultInterface.Get_UserName;
  9058. end;
  9059. function TWinNTSystemInfo.Get_ComputerName: WideString;
  9060. begin
  9061. Result := DefaultInterface.Get_ComputerName;
  9062. end;
  9063. function TWinNTSystemInfo.Get_DomainName: WideString;
  9064. begin
  9065. Result := DefaultInterface.Get_DomainName;
  9066. end;
  9067. function TWinNTSystemInfo.Get_PDC: WideString;
  9068. begin
  9069. Result := DefaultInterface.Get_PDC;
  9070. end;
  9071. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9072. constructor TWinNTSystemInfoProperties.Create(AServer: TWinNTSystemInfo);
  9073. begin
  9074. inherited Create;
  9075. FServer := AServer;
  9076. end;
  9077. function TWinNTSystemInfoProperties.GetDefaultInterface: IADsWinNTSystemInfo;
  9078. begin
  9079. Result := FServer.DefaultInterface;
  9080. end;
  9081. function TWinNTSystemInfoProperties.Get_UserName: WideString;
  9082. begin
  9083. Result := DefaultInterface.Get_UserName;
  9084. end;
  9085. function TWinNTSystemInfoProperties.Get_ComputerName: WideString;
  9086. begin
  9087. Result := DefaultInterface.Get_ComputerName;
  9088. end;
  9089. function TWinNTSystemInfoProperties.Get_DomainName: WideString;
  9090. begin
  9091. Result := DefaultInterface.Get_DomainName;
  9092. end;
  9093. function TWinNTSystemInfoProperties.Get_PDC: WideString;
  9094. begin
  9095. Result := DefaultInterface.Get_PDC;
  9096. end;
  9097. {$ENDIF}
  9098. class function CoDNWithBinary.Create: IADsDNWithBinary;
  9099. begin
  9100. Result := CreateComObject(CLASS_DNWithBinary) as IADsDNWithBinary;
  9101. end;
  9102. class function CoDNWithBinary.CreateRemote(const MachineName: string): IADsDNWithBinary;
  9103. begin
  9104. Result := CreateRemoteComObject(MachineName, CLASS_DNWithBinary) as IADsDNWithBinary;
  9105. end;
  9106. procedure TDNWithBinary.InitServerData;
  9107. const
  9108. CServerData: TServerData = (
  9109. ClassID: '{7E99C0A3-F935-11D2-BA96-00C04FB6D0D1}';
  9110. IntfIID: '{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}';
  9111. EventIID: '';
  9112. LicenseKey: nil;
  9113. Version: 500);
  9114. begin
  9115. ServerData := @CServerData;
  9116. end;
  9117. procedure TDNWithBinary.Connect;
  9118. var
  9119. punk: IUnknown;
  9120. begin
  9121. if FIntf = nil then
  9122. begin
  9123. punk := GetServer;
  9124. Fintf:= punk as IADsDNWithBinary;
  9125. end;
  9126. end;
  9127. procedure TDNWithBinary.ConnectTo(svrIntf: IADsDNWithBinary);
  9128. begin
  9129. Disconnect;
  9130. FIntf := svrIntf;
  9131. end;
  9132. procedure TDNWithBinary.DisConnect;
  9133. begin
  9134. if Fintf <> nil then
  9135. begin
  9136. FIntf := nil;
  9137. end;
  9138. end;
  9139. function TDNWithBinary.GetDefaultInterface: IADsDNWithBinary;
  9140. begin
  9141. if FIntf = nil then
  9142. Connect;
  9143. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  9144. Result := FIntf;
  9145. end;
  9146. constructor TDNWithBinary.Create(AOwner: TComponent);
  9147. begin
  9148. inherited Create(AOwner);
  9149. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9150. FProps := TDNWithBinaryProperties.Create(Self);
  9151. {$ENDIF}
  9152. end;
  9153. destructor TDNWithBinary.Destroy;
  9154. begin
  9155. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9156. FProps.Free;
  9157. {$ENDIF}
  9158. inherited Destroy;
  9159. end;
  9160. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9161. function TDNWithBinary.GetServerProperties: TDNWithBinaryProperties;
  9162. begin
  9163. Result := FProps;
  9164. end;
  9165. {$ENDIF}
  9166. function TDNWithBinary.Get_BinaryValue: OleVariant;
  9167. begin
  9168. Result := DefaultInterface.Get_BinaryValue;
  9169. end;
  9170. procedure TDNWithBinary.Set_BinaryValue(retval: OleVariant);
  9171. begin
  9172. DefaultInterface.Set_BinaryValue(retval);
  9173. end;
  9174. function TDNWithBinary.Get_DNString: WideString;
  9175. begin
  9176. Result := DefaultInterface.Get_DNString;
  9177. end;
  9178. procedure TDNWithBinary.Set_DNString(const retval: WideString);
  9179. begin
  9180. DefaultInterface.Set_DNString(retval);
  9181. end;
  9182. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9183. constructor TDNWithBinaryProperties.Create(AServer: TDNWithBinary);
  9184. begin
  9185. inherited Create;
  9186. FServer := AServer;
  9187. end;
  9188. function TDNWithBinaryProperties.GetDefaultInterface: IADsDNWithBinary;
  9189. begin
  9190. Result := FServer.DefaultInterface;
  9191. end;
  9192. function TDNWithBinaryProperties.Get_BinaryValue: OleVariant;
  9193. begin
  9194. Result := DefaultInterface.Get_BinaryValue;
  9195. end;
  9196. procedure TDNWithBinaryProperties.Set_BinaryValue(retval: OleVariant);
  9197. begin
  9198. DefaultInterface.Set_BinaryValue(retval);
  9199. end;
  9200. function TDNWithBinaryProperties.Get_DNString: WideString;
  9201. begin
  9202. Result := DefaultInterface.Get_DNString;
  9203. end;
  9204. procedure TDNWithBinaryProperties.Set_DNString(const retval: WideString);
  9205. begin
  9206. DefaultInterface.Set_DNString(retval);
  9207. end;
  9208. {$ENDIF}
  9209. class function CoDNWithString.Create: IADsDNWithString;
  9210. begin
  9211. Result := CreateComObject(CLASS_DNWithString) as IADsDNWithString;
  9212. end;
  9213. class function CoDNWithString.CreateRemote(const MachineName: string): IADsDNWithString;
  9214. begin
  9215. Result := CreateRemoteComObject(MachineName, CLASS_DNWithString) as IADsDNWithString;
  9216. end;
  9217. procedure TDNWithString.InitServerData;
  9218. const
  9219. CServerData: TServerData = (
  9220. ClassID: '{334857CC-F934-11D2-BA96-00C04FB6D0D1}';
  9221. IntfIID: '{370DF02E-F934-11D2-BA96-00C04FB6D0D1}';
  9222. EventIID: '';
  9223. LicenseKey: nil;
  9224. Version: 500);
  9225. begin
  9226. ServerData := @CServerData;
  9227. end;
  9228. procedure TDNWithString.Connect;
  9229. var
  9230. punk: IUnknown;
  9231. begin
  9232. if FIntf = nil then
  9233. begin
  9234. punk := GetServer;
  9235. Fintf:= punk as IADsDNWithString;
  9236. end;
  9237. end;
  9238. procedure TDNWithString.ConnectTo(svrIntf: IADsDNWithString);
  9239. begin
  9240. Disconnect;
  9241. FIntf := svrIntf;
  9242. end;
  9243. procedure TDNWithString.DisConnect;
  9244. begin
  9245. if Fintf <> nil then
  9246. begin
  9247. FIntf := nil;
  9248. end;
  9249. end;
  9250. function TDNWithString.GetDefaultInterface: IADsDNWithString;
  9251. begin
  9252. if FIntf = nil then
  9253. Connect;
  9254. Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
  9255. Result := FIntf;
  9256. end;
  9257. constructor TDNWithString.Create(AOwner: TComponent);
  9258. begin
  9259. inherited Create(AOwner);
  9260. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9261. FProps := TDNWithStringProperties.Create(Self);
  9262. {$ENDIF}
  9263. end;
  9264. destructor TDNWithString.Destroy;
  9265. begin
  9266. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9267. FProps.Free;
  9268. {$ENDIF}
  9269. inherited Destroy;
  9270. end;
  9271. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9272. function TDNWithString.GetServerProperties: TDNWithStringProperties;
  9273. begin
  9274. Result := FProps;
  9275. end;
  9276. {$ENDIF}
  9277. function TDNWithString.Get_StringValue: WideString;
  9278. begin
  9279. Result := DefaultInterface.Get_StringValue;
  9280. end;
  9281. procedure TDNWithString.Set_StringValue(const retval: WideString);
  9282. begin
  9283. DefaultInterface.Set_StringValue(retval);
  9284. end;
  9285. function TDNWithString.Get_DNString: WideString;
  9286. begin
  9287. Result := DefaultInterface.Get_DNString;
  9288. end;
  9289. procedure TDNWithString.Set_DNString(const retval: WideString);
  9290. begin
  9291. DefaultInterface.Set_DNString(retval);
  9292. end;
  9293. {$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  9294. constructor TDNWithStringProperties.Create(AServer: TDNWithString);
  9295. begin
  9296. inherited Create;
  9297. FServer := AServer;
  9298. end;
  9299. function TDNWithStringProperties.GetDefaultInterface: IADsDNWithString;
  9300. begin
  9301. Result := FServer.DefaultInterface;
  9302. end;
  9303. function TDNWithStringProperties.Get_StringValue: WideString;
  9304. begin
  9305. Result := DefaultInterface.Get_StringValue;
  9306. end;
  9307. procedure TDNWithStringProperties.Set_StringValue(const retval: WideString);
  9308. begin
  9309. DefaultInterface.Set_StringValue(retval);
  9310. end;
  9311. function TDNWithStringProperties.Get_DNString: WideString;
  9312. begin
  9313. Result := DefaultInterface.Get_DNString;
  9314. end;
  9315. procedure TDNWithStringProperties.Set_DNString(const retval: WideString);
  9316. begin
  9317. DefaultInterface.Set_DNString(retval);
  9318. end;
  9319. {$ENDIF}
  9320. {$ifdef FPC} // dummy
  9321. {
  9322. function CreateComObject(ID: TGUID): IUnknown; //empty
  9323. begin
  9324. end;
  9325. function CreateRemoteComObject(w:widestring; ID: TGUID): IUnknown; //empty
  9326. begin
  9327. end;
  9328. }
  9329. function tOleServer.GetServer:IUnknown;
  9330. begin
  9331. end;
  9332. procedure tOleServer.InitServerData;
  9333. begin
  9334. end;
  9335. constructor tOleServer.Create(AOwner: TComponent);
  9336. begin
  9337. end;
  9338. Procedure tOleServer.Connect;
  9339. begin
  9340. end;
  9341. procedure tOleServer.Disconnect;
  9342. begin
  9343. end;
  9344. {$endif}
  9345. procedure Register;
  9346. begin
  9347. RegisterComponents('ActiveX',[TPropertyEntry, TPropertyValue, TAccessControlEntry, TAccessControlList,
  9348. TSecurityDescriptor, TLargeInteger, TNameTranslate, TCaseIgnoreList, TFaxNumber,
  9349. TNetAddress, TOctetList, TEmail, TPath, TReplicaPointer,
  9350. TAcl, TTimestamp, TPostalAddress, TBackLink, TTypedName,
  9351. THold, TPathname, TADSystemInfo, TWinNTSystemInfo, TDNWithBinary,
  9352. TDNWithString]);
  9353. end;
  9354. end.