home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / win32 / 1964 < prev    next >
Encoding:
Text File  |  1992-11-14  |  1.9 KB  |  43 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!ukma!netsys!decwrl!pa.dec.com!e2big.mko.dec.com!star.enet.dec.com!stonecypher
  3. From: stonecypher@star.enet.dec.com ()
  4. Subject: Naming Convention for Named Objects?
  5. Message-ID: <1992Nov13.184516.10985@e2big.mko.dec.com>
  6. Lines: 31
  7. Sender: usenet@e2big.mko.dec.com (Mr. USENET)
  8. Reply-To: stonecypher@star.enet.dec.com ()
  9. Organization: Digital Equipment Corporation
  10. Date: Fri, 13 Nov 1992 18:45:16 GMT
  11.  
  12.  
  13. Has Microsoft published a spec detailing naming conventions for named
  14. objects? Names for named objects are system-global, so it is possible that
  15. two different applications will (unintentionally) conflict, choosing the
  16. same name for an object.
  17.  
  18. A naming convention would act as a gentleman's agreement across application
  19. developers about global object names. I realize that a naming convention
  20. doesn't prevent malicious action on the part of a developer, but it is a
  21. necessary step for prevention of unintended name conflicts.
  22.  
  23. I imagine Microsoft intends developers to embed the organization and
  24. application names in the object's name. For example, imagine that
  25. Microsoft App1 and Digital App2 both want to create a named pipe:
  26.  
  27.     \MICROSOFT\APPLICATION\APP1\MYNAMEDPIPE
  28.     \DIGITALEQUIPMENT\APPLICATION\APP2\MYNAMEDPIPE
  29.  
  30. This type of naming convention would prevent unintended collisions. Is
  31. there an official Microsoft spec detailing a naming convention?
  32.  
  33. I'm not asking about object domains -- just plain objects, like a named pipe
  34. which is used as a generic service request channel, for server/client
  35. session startup. Nor am I asking about access tokens -- I realize they are
  36. important for some classes of objects.
  37.  
  38. Thanks!
  39.  
  40. -----------------------------------------------------------------------------
  41. Tom Stonecypher, Digital Equipment Corporation, stonecypher@star.enet.dec.com
  42. -----------------------------------------------------------------------------
  43.