JwaAdsnms.pas
上传用户:davidchvip
上传日期:2009-07-28
资源大小:1749k
文件大小:7k
源码类别:

Windows编程

开发平台:

Delphi

  1. {******************************************************************************}
  2. {                                                                       }
  3. { Active Directory Class Names API interface Unit for Object Pascal            }
  4. {                                                                       }
  5. { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft          }
  6. { Corporation. All Rights Reserved.                                            }
  7. {                 }
  8. { The original file is: adsnms.h, released June 2000. The original Pascal      }
  9. { code is: AdsNms.pas, released December 2000. The initial developer of the    }
  10. { Pascal code is Marcel van Brakel (brakelm@chello.nl).                        }
  11. {                                                                              }
  12. { Portions created by Marcel van Brakel are Copyright (C) 1999-2001            }
  13. { Marcel van Brakel. All Rights Reserved.                                      }
  14. {                 }
  15. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI)        }
  16. {                }
  17. { You may retrieve the latest version of this file at the Project JEDI home    }
  18. { page, located at http://delphi-jedi.org or my personal homepage located at   }
  19. { http://members.chello.nl/m.vanbrakel2                                        }
  20. {                }
  21. { The contents of this file are used with permission, subject to the Mozilla   }
  22. { Public License Version 1.1 (the "License"); you may not use this file except }
  23. { in compliance with the License. You may obtain a copy of the License at      }
  24. { http://www.mozilla.org/MPL/MPL-1.1.html                                      }
  25. {                                                                              }
  26. { Software distributed under the License is distributed on an "AS IS" basis,   }
  27. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  28. { the specific language governing rights and limitations under the License.    }
  29. {                                                                              }
  30. { Alternatively, the contents of this file may be used under the terms of the  }
  31. { GNU Lesser General Public License (the  "LGPL License"), in which case the   }
  32. { provisions of the LGPL License are applicable instead of those above.        }
  33. { If you wish to allow use of your version of this file only under the terms   }
  34. { of the LGPL License and not to allow others to use your version of this file }
  35. { under the MPL, indicate your decision by deleting  the provisions above and  }
  36. { replace  them with the notice and other provisions required by the LGPL      }
  37. { License.  If you do not delete the provisions above, a recipient may use     }
  38. { your version of this file under either the MPL or the LGPL License.          }
  39. {                 }
  40. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  41. {                 }
  42. {******************************************************************************}
  43. unit JwaAdsnms;
  44. {$WEAKPACKAGEUNIT}
  45. {$HPPEMIT ''}
  46. {$HPPEMIT '#include "adsnms.h"'}
  47. {$HPPEMIT ''}
  48. {$I WINDEFINES.INC}
  49. interface
  50. //  Contents:   Class Names and schema definitions for ADS objects
  51. const
  52.   NAMESPACE_CLASS_NAME        = 'Namespace';
  53.   {$EXTERNALSYM NAMESPACE_CLASS_NAME}
  54.   COUNTRY_CLASS_NAME          = 'Country';
  55.   {$EXTERNALSYM COUNTRY_CLASS_NAME}
  56.   LOCALITY_CLASS_NAME         = 'Locality';
  57.   {$EXTERNALSYM LOCALITY_CLASS_NAME}
  58.   ORGANIZATION_CLASS_NAME     = 'Organization';
  59.   {$EXTERNALSYM ORGANIZATION_CLASS_NAME}
  60.   ORGANIZATIONUNIT_CLASS_NAME = 'Organizational Unit';
  61.   {$EXTERNALSYM ORGANIZATIONUNIT_CLASS_NAME}
  62.   DOMAIN_CLASS_NAME           = 'Domain';
  63.   {$EXTERNALSYM DOMAIN_CLASS_NAME}
  64.   COMPUTER_CLASS_NAME         = 'Computer';
  65.   {$EXTERNALSYM COMPUTER_CLASS_NAME}
  66.   USER_CLASS_NAME             = 'User';
  67.   {$EXTERNALSYM USER_CLASS_NAME}
  68.   GROUP_CLASS_NAME            = 'Group';
  69.   {$EXTERNALSYM GROUP_CLASS_NAME}
  70.   GLOBALGROUP_CLASS_NAME      = 'GlobalGroup';
  71.   {$EXTERNALSYM GLOBALGROUP_CLASS_NAME}
  72.   LOCALGROUP_CLASS_NAME       = 'LocalGroup';
  73.   {$EXTERNALSYM LOCALGROUP_CLASS_NAME}
  74.   SERVICE_CLASS_NAME          = 'Service';
  75.   {$EXTERNALSYM SERVICE_CLASS_NAME}
  76.   FILESERVICE_CLASS_NAME      = 'FileService';
  77.   {$EXTERNALSYM FILESERVICE_CLASS_NAME}
  78.   SESSION_CLASS_NAME          = 'Session';
  79.   {$EXTERNALSYM SESSION_CLASS_NAME}
  80.   RESOURCE_CLASS_NAME         = 'Resource';
  81.   {$EXTERNALSYM RESOURCE_CLASS_NAME}
  82.   FILESHARE_CLASS_NAME        = 'FileShare';
  83.   {$EXTERNALSYM FILESHARE_CLASS_NAME}
  84.   PRINTER_CLASS_NAME          = 'PrintQueue';
  85.   {$EXTERNALSYM PRINTER_CLASS_NAME}
  86.   PRINTJOB_CLASS_NAME         = 'PrintJob';
  87.   {$EXTERNALSYM PRINTJOB_CLASS_NAME}
  88.   SCHEMA_CLASS_NAME           = 'Schema';
  89.   {$EXTERNALSYM SCHEMA_CLASS_NAME}
  90.   CLASS_CLASS_NAME            = 'Class';
  91.   {$EXTERNALSYM CLASS_CLASS_NAME}
  92.   PROPERTY_CLASS_NAME         = 'Property';
  93.   {$EXTERNALSYM PROPERTY_CLASS_NAME}
  94.   SYNTAX_CLASS_NAME           = 'Syntax';
  95.   {$EXTERNALSYM SYNTAX_CLASS_NAME}
  96.   ROOTDSE_CLASS_NAME          = 'RootDSE';
  97.   {$EXTERNALSYM ROOTDSE_CLASS_NAME}
  98.   NO_SCHEMA                    = '';
  99.   {$EXTERNALSYM NO_SCHEMA}
  100.   DOMAIN_SCHEMA_NAME           = 'Domain';
  101.   {$EXTERNALSYM DOMAIN_SCHEMA_NAME}
  102.   COMPUTER_SCHEMA_NAME         = 'Computer';
  103.   {$EXTERNALSYM COMPUTER_SCHEMA_NAME}
  104.   USER_SCHEMA_NAME             = 'User';
  105.   {$EXTERNALSYM USER_SCHEMA_NAME}
  106.   GROUP_SCHEMA_NAME            = 'Group';
  107.   {$EXTERNALSYM GROUP_SCHEMA_NAME}
  108.   GLOBALGROUP_SCHEMA_NAME      = 'GlobalGroup';
  109.   {$EXTERNALSYM GLOBALGROUP_SCHEMA_NAME}
  110.   LOCALGROUP_SCHEMA_NAME       = 'LocalGroup';
  111.   {$EXTERNALSYM LOCALGROUP_SCHEMA_NAME}
  112.   SERVICE_SCHEMA_NAME          = 'Service';
  113.   {$EXTERNALSYM SERVICE_SCHEMA_NAME}
  114.   PRINTER_SCHEMA_NAME          = 'PrintQueue';
  115.   {$EXTERNALSYM PRINTER_SCHEMA_NAME}
  116.   PRINTJOB_SCHEMA_NAME         = 'PrintJob';
  117.   {$EXTERNALSYM PRINTJOB_SCHEMA_NAME}
  118.   FILESERVICE_SCHEMA_NAME      = 'FileService';
  119.   {$EXTERNALSYM FILESERVICE_SCHEMA_NAME}
  120.   SESSION_SCHEMA_NAME          = 'Session';
  121.   {$EXTERNALSYM SESSION_SCHEMA_NAME}
  122.   RESOURCE_SCHEMA_NAME         = 'Resource';
  123.   {$EXTERNALSYM RESOURCE_SCHEMA_NAME}
  124.   FILESHARE_SCHEMA_NAME        = 'FileShare';
  125.   {$EXTERNALSYM FILESHARE_SCHEMA_NAME}
  126.   FPNW_FILESERVICE_SCHEMA_NAME = 'FPNWFileService';
  127.   {$EXTERNALSYM FPNW_FILESERVICE_SCHEMA_NAME}
  128.   FPNW_SESSION_SCHEMA_NAME     = 'FPNWSession';
  129.   {$EXTERNALSYM FPNW_SESSION_SCHEMA_NAME}
  130.   FPNW_RESOURCE_SCHEMA_NAME    = 'FPNWResource';
  131.   {$EXTERNALSYM FPNW_RESOURCE_SCHEMA_NAME}
  132.   FPNW_FILESHARE_SCHEMA_NAME   = 'FPNWFileShare';
  133.   {$EXTERNALSYM FPNW_FILESHARE_SCHEMA_NAME}
  134. implementation
  135. end.