home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpobj.zip / PROFILE.ZIP / SYSDLL.TXT < prev   
Text File  |  1993-11-11  |  1KB  |  34 lines

  1.  
  2.  
  3.  Registering A Public Class
  4.  --------------------------
  5.  
  6.  To register a public window class for your control, you would add your DLL
  7.  to the "LoadOneTime" list.  Your DLL, in turn, would contain an ord1 function
  8.  that would perform the WinRegisterClass call which uses the CS_PUBLIC style.
  9.  Remember, CS_PUBLIC is only valid when used within the shell process.
  10.  Therefore, to make your control public, you will need to perform the
  11.  following steps:
  12.      1) Make a backup copy of your current OS2.INI file.
  13.      2) Add your DLL to the "LoadOneTime" list for SYS_DLLS in the OS2.INI
  14.         file.
  15.      3) Shutdown and reboot.
  16.  
  17.  We have included a sample application, profile.c, that shows how to
  18.  add your DLL name to the SYS_DLLS "LoadOneTime" list.
  19.  
  20.  Note:  If CS_PUBLIC is used by any process other than the shell process,
  21.         WinRegisterClass will fail.
  22.  
  23.  
  24.  Restrictions
  25.  ------------
  26.  
  27.  The appname, SYS_DLLS, and the keynames, "Load", "LoadPerProcess", and
  28.  "LoadOneTime" are all case sensitive: you must be aware of the case
  29.  sensitivity as shown in the sample application.  Additionally, there is
  30.  a 255 character limit per each keyname string.  Finally, if you have
  31.  modified the string for the "LoadOneTime" keyname, you must reboot
  32.  for your change to take effect.
  33.  
  34.