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

Windows编程

开发平台:

Delphi

  1. {******************************************************************************}
  2. {                                                                       }
  3. { Lan Manager Service 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: lmsname.h, released November 2001. The original Pascal }
  9. { code is: LmSName.pas, released Februari 2002. 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 JwaLmSName;
  44. {$WEAKPACKAGEUNIT}
  45. {$HPPEMIT ''}
  46. {$HPPEMIT '#include "lmsname.h"'}
  47. {$HPPEMIT ''}
  48. {$I WINDEFINES.INC}
  49. interface
  50. uses
  51.   JwaWinType;
  52. //
  53. //  Standard LAN Manager service names.
  54. //
  55. const
  56.   SERVICE_WORKSTATION      = TEXT('LanmanWorkstation');
  57.   {$EXTERNALSYM SERVICE_WORKSTATION}
  58.   SERVICE_LM20_WORKSTATION = TEXT('WORKSTATION');
  59.   {$EXTERNALSYM SERVICE_LM20_WORKSTATION}
  60.   WORKSTATION_DISPLAY_NAME = TEXT('Workstation');
  61.   {$EXTERNALSYM WORKSTATION_DISPLAY_NAME}
  62.   SERVICE_SERVER      = TEXT('LanmanServer');
  63.   {$EXTERNALSYM SERVICE_SERVER}
  64.   SERVICE_LM20_SERVER = TEXT('SERVER');
  65.   {$EXTERNALSYM SERVICE_LM20_SERVER}
  66.   SERVER_DISPLAY_NAME = TEXT('Server');
  67.   {$EXTERNALSYM SERVER_DISPLAY_NAME}
  68.   SERVICE_BROWSER      = TEXT('BROWSER');
  69.   {$EXTERNALSYM SERVICE_BROWSER}
  70.   SERVICE_LM20_BROWSER = SERVICE_BROWSER;
  71.   {$EXTERNALSYM SERVICE_LM20_BROWSER}
  72.   SERVICE_MESSENGER      = TEXT('MESSENGER');
  73.   {$EXTERNALSYM SERVICE_MESSENGER}
  74.   SERVICE_LM20_MESSENGER = SERVICE_MESSENGER;
  75.   {$EXTERNALSYM SERVICE_LM20_MESSENGER}
  76.   SERVICE_NETRUN      = TEXT('NETRUN');
  77.   {$EXTERNALSYM SERVICE_NETRUN}
  78.   SERVICE_LM20_NETRUN = SERVICE_NETRUN;
  79.   {$EXTERNALSYM SERVICE_LM20_NETRUN}
  80.   SERVICE_SPOOLER      = TEXT('SPOOLER');
  81.   {$EXTERNALSYM SERVICE_SPOOLER}
  82.   SERVICE_LM20_SPOOLER = SERVICE_SPOOLER;
  83.   {$EXTERNALSYM SERVICE_LM20_SPOOLER}
  84.   SERVICE_ALERTER      = TEXT('ALERTER');
  85.   {$EXTERNALSYM SERVICE_ALERTER}
  86.   SERVICE_LM20_ALERTER = SERVICE_ALERTER;
  87.   {$EXTERNALSYM SERVICE_LM20_ALERTER}
  88.   SERVICE_NETLOGON      = TEXT('NETLOGON');
  89.   {$EXTERNALSYM SERVICE_NETLOGON}
  90.   SERVICE_LM20_NETLOGON = SERVICE_NETLOGON;
  91.   {$EXTERNALSYM SERVICE_LM20_NETLOGON}
  92.   SERVICE_NETPOPUP      = TEXT('NETPOPUP');
  93.   {$EXTERNALSYM SERVICE_NETPOPUP}
  94.   SERVICE_LM20_NETPOPUP = SERVICE_NETPOPUP;
  95.   {$EXTERNALSYM SERVICE_LM20_NETPOPUP}
  96.   SERVICE_SQLSERVER      = TEXT('SQLSERVER');
  97.   {$EXTERNALSYM SERVICE_SQLSERVER}
  98.   SERVICE_LM20_SQLSERVER = SERVICE_SQLSERVER;
  99.   {$EXTERNALSYM SERVICE_LM20_SQLSERVER}
  100.   SERVICE_REPL      = TEXT('REPLICATOR');
  101.   {$EXTERNALSYM SERVICE_REPL}
  102.   SERVICE_LM20_REPL = SERVICE_REPL;
  103.   {$EXTERNALSYM SERVICE_LM20_REPL}
  104.   SERVICE_RIPL      = TEXT('REMOTEBOOT');
  105.   {$EXTERNALSYM SERVICE_RIPL}
  106.   SERVICE_LM20_RIPL = SERVICE_RIPL;
  107.   {$EXTERNALSYM SERVICE_LM20_RIPL}
  108.   SERVICE_TIMESOURCE      = TEXT('TIMESOURCE');
  109.   {$EXTERNALSYM SERVICE_TIMESOURCE}
  110.   SERVICE_LM20_TIMESOURCE = SERVICE_TIMESOURCE;
  111.   {$EXTERNALSYM SERVICE_LM20_TIMESOURCE}
  112.   SERVICE_AFP      = TEXT('AFP');
  113.   {$EXTERNALSYM SERVICE_AFP}
  114.   SERVICE_LM20_AFP = SERVICE_AFP;
  115.   {$EXTERNALSYM SERVICE_LM20_AFP}
  116.   SERVICE_UPS      = TEXT('UPS');
  117.   {$EXTERNALSYM SERVICE_UPS}
  118.   SERVICE_LM20_UPS = SERVICE_UPS;
  119.   {$EXTERNALSYM SERVICE_LM20_UPS}
  120.   SERVICE_XACTSRV      = TEXT('XACTSRV');
  121.   {$EXTERNALSYM SERVICE_XACTSRV}
  122.   SERVICE_LM20_XACTSRV = SERVICE_XACTSRV;
  123.   {$EXTERNALSYM SERVICE_LM20_XACTSRV}
  124.   SERVICE_TCPIP      = TEXT('TCPIP');
  125.   {$EXTERNALSYM SERVICE_TCPIP}
  126.   SERVICE_LM20_TCPIP = SERVICE_TCPIP;
  127.   {$EXTERNALSYM SERVICE_LM20_TCPIP}
  128.   SERVICE_NBT      = TEXT('NBT');
  129.   {$EXTERNALSYM SERVICE_NBT}
  130.   SERVICE_LM20_NBT = SERVICE_NBT;
  131.   {$EXTERNALSYM SERVICE_LM20_NBT}
  132.   SERVICE_LMHOSTS      = TEXT('LMHOSTS');
  133.   {$EXTERNALSYM SERVICE_LMHOSTS}
  134.   SERVICE_LM20_LMHOSTS = SERVICE_LMHOSTS;
  135.   {$EXTERNALSYM SERVICE_LM20_LMHOSTS}
  136.   SERVICE_TELNET      = TEXT('Telnet');
  137.   {$EXTERNALSYM SERVICE_TELNET}
  138.   SERVICE_LM20_TELNET = SERVICE_TELNET;
  139.   {$EXTERNALSYM SERVICE_LM20_TELNET}
  140.   SERVICE_SCHEDULE      = TEXT('Schedule');
  141.   {$EXTERNALSYM SERVICE_SCHEDULE}
  142.   SERVICE_LM20_SCHEDULE = SERVICE_SCHEDULE;
  143.   {$EXTERNALSYM SERVICE_LM20_SCHEDULE}
  144.   SERVICE_NTLMSSP = TEXT('NtLmSsp');
  145.   {$EXTERNALSYM SERVICE_NTLMSSP}
  146.   SERVICE_DHCP      = TEXT('DHCP');
  147.   {$EXTERNALSYM SERVICE_DHCP}
  148.   SERVICE_LM20_DHCP = SERVICE_DHCP;
  149.   {$EXTERNALSYM SERVICE_LM20_DHCP}
  150.   SERVICE_NWSAP      = TEXT('NwSapAgent');
  151.   {$EXTERNALSYM SERVICE_NWSAP}
  152.   SERVICE_LM20_NWSAP = SERVICE_NWSAP;
  153.   {$EXTERNALSYM SERVICE_LM20_NWSAP}
  154.   NWSAP_DISPLAY_NAME = TEXT('NW Sap Agent');
  155.   {$EXTERNALSYM NWSAP_DISPLAY_NAME}
  156.   SERVICE_NWCS      = TEXT('NWCWorkstation');
  157.   {$EXTERNALSYM SERVICE_NWCS}
  158.   SERVICE_DNS_CACHE = TEXT('DnsCache');
  159.   {$EXTERNALSYM SERVICE_DNS_CACHE}
  160.   SERVICE_W32TIME     = TEXT('w32time');
  161.   {$EXTERNALSYM SERVICE_W32TIME}
  162.   SERVCE_LM20_W32TIME = SERVICE_W32TIME;
  163.   {$EXTERNALSYM SERVCE_LM20_W32TIME}
  164.   SERVICE_KDC      = TEXT('kdc');
  165.   {$EXTERNALSYM SERVICE_KDC}
  166.   SERVICE_LM20_KDC = SERVICE_KDC;
  167.   {$EXTERNALSYM SERVICE_LM20_KDC}
  168.   SERVICE_RPCLOCATOR      = TEXT('RPCLOCATOR');
  169.   {$EXTERNALSYM SERVICE_RPCLOCATOR}
  170.   SERVICE_LM20_RPCLOCATOR = SERVICE_RPCLOCATOR;
  171.   {$EXTERNALSYM SERVICE_LM20_RPCLOCATOR}
  172.   SERVICE_TRKSVR      = TEXT('TrkSvr');
  173.   {$EXTERNALSYM SERVICE_TRKSVR}
  174.   SERVICE_LM20_TRKSVR = SERVICE_TRKSVR;
  175.   {$EXTERNALSYM SERVICE_LM20_TRKSVR}
  176.   SERVICE_TRKWKS      = TEXT('TrkWks');
  177.   {$EXTERNALSYM SERVICE_TRKWKS}
  178.   SERVICE_LM20_TRKWKS = SERVICE_TRKWKS;
  179.   {$EXTERNALSYM SERVICE_LM20_TRKWKS}
  180.   SERVICE_NTFRS      = TEXT('NtFrs');
  181.   {$EXTERNALSYM SERVICE_NTFRS}
  182.   SERVICE_LM20_NTFRS = SERVICE_NTFRS;
  183.   {$EXTERNALSYM SERVICE_LM20_NTFRS}
  184.   SERVICE_ISMSERV      = TEXT('IsmServ');
  185.   {$EXTERNALSYM SERVICE_ISMSERV}
  186.   SERVICE_LM20_ISMSERV = SERVICE_ISMSERV;
  187.   {$EXTERNALSYM SERVICE_LM20_ISMSERV}
  188. implementation
  189. end.