home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / Bonus / WSTAR2 / DISK4 / WSWREGDB.WM_ / WSWREGDB.bin
Encoding:
Text File  |  1994-02-28  |  17.8 KB  |  193 lines

  1. REM Description:  Install WSWin registration database keys
  2. REM Filename:  wswregdb.wmc
  3. REM Created by:  Rich Zuris - 2/2/94
  4.  
  5. CONST MAXKEY% = 4    'Number of file types to register
  6. DIM Description$(MAXKEY%), Extension$(MAXKEY%), Key$(MAXKEY%), Open$(MAXKEY%), Print$(MAXKEY%)
  7.  
  8. i% = 1
  9. Description$(i%)    = "WordStar for Windows Document"
  10. Extension$(i%)        = ".wsd"
  11. Key$(i%)            = "wswdoc"
  12. Open$(i%)            = "wswin.exe %1"
  13. Print$(i%)            = "wswin.exe %1 /p"
  14.  
  15. i% = 2
  16. Description$(i%)    = "WordStar for Windows Template"
  17. Extension$(i%)        = ".wst"
  18. Key$(i%)            = "wswtmplt"
  19. Open$(i%)            = "wswin.exe %1 /n"
  20. Print$(i%)            = "wswin.exe %1 /p"
  21.  
  22. i% = 3
  23. Description$(i%)    = "WordStar for Windows Macro"
  24. Extension$(i%)        = ".wmc"
  25. Key$(i%)            = "wswmac"
  26. Open$(i%)            = "wsmaced.exe %1"
  27. Print$(i%)            = ""
  28.  
  29. i% = 4
  30. Description$(i%)    = "WordStar for Windows Macro Dialog"
  31. Extension$(i%)        = ".wdg"
  32. Key$(i%)            = "wswdlg"
  33. Open$(i%)            = "wsdlged.exe %1"
  34. Print$(i%)            = ""
  35.  
  36. SHARED Directory$    'WSWin application directory
  37. SHARED Value$        'Reg key value
  38. CONST regOpen$     = "\shell\open\command"
  39. CONST regPrint$    = "\shell\print\command"
  40. CONST WininiExt$    = "Extensions"
  41.  
  42. 'Windows APIs
  43. DECLARE FUNCTION RegSetValue LIB "shell.dll" (hkey AS INTEGER, subkey AS STRING, keytype AS INTEGER, value AS STRING, size AS INTEGER) AS INTEGER
  44. DECLARE FUNCTION GetPrivateProfileString LIB "kernel" (lpApplicationName AS STRING, lpKeyName AS STRING, lpDefault AS STRING, lpReturnedString AS STRING, nSize As WORD, lpFileName AS STRING) AS WORD
  45. DECLARE FUNCTION WriteProfileString LIB "kernel" (lpApplicationName AS STRING, lpKeyName AS STRING, value AS INTEGER) As WORD 
  46. DECLARE FUNCTION GetModuleHandle LIB "kernel" (lpApp AS STRING) AS WORD
  47. DECLARE FUNCTION GetModuleFileName LIB "kernel" (hinst AS WORD, app AS STRING, size AS WORD) AS WORD
  48. DECLARE FUNCTION MessageBox LIB "user" (hwnd AS WORD, lpMsg AS STRING, lpTitle AS STRING, wFlags AS WORD) AS WORD
  49.  
  50. hinst% = GetModuleHandle("WSWINDLL")
  51. IF hinst% <> 0 THEN    'If WSWin is active, show status and get directory name
  52.     Msg$ = "Choose OK to update the registration database, or choose Cancel to quit."
  53.     Msg$ = Msg$ + CHR$(13) + CHR$(13) + "The registration database contains information "
  54.     Msg$ = Msg$ + "necessary for OLE and Drag and Drop."
  55.     IF MessageBox(I2W(0), Msg$, "WSWin Macro", I2W(33)) = 2 THEN STOP
  56.     StatusMsg "Registering WSWin files in registration database . . ."
  57.     ret% = GetModuleFileName(I2W(hinst%), Directory$, I2W(255))
  58.     pos% = LEN(Directory$)
  59.     WHILE MID$(Directory$, pos%, 1) <> "\"
  60.         pos% = pos% - 1
  61.     WEND
  62.     Directory$ = LEFT$(Directory$, pos%)
  63. ELSE
  64.     'Check both standard and network sections of INI file for path to applications
  65.     ret% = GetPrivateProfileString("WSWin", "WSWinDirectory", "", Directory$, I2W(255), "wsw.ini")
  66.     ret% = GetPrivateProfileString("Shared Files", "WSWinDirectory", Directory$, Directory$, I2W(255), "wsw.ini")
  67.     IF Directory$ <> "" AND RIGHT$(Directory$, 1) <> "\" THEN Directory$ = Directory$ + "\"
  68. END IF
  69.  
  70. FOR i% = 1 to MAXKEY%    'Register file types and commands
  71.     ret% = RegSetValue(1, Extension$(i%), 1, Key$(i%), LEN(Key$(i%)))
  72.     ret% = RegSetValue(1, Key$(i%), 1, Description$(i%), LEN(Description$(i%)))
  73.     Subkey$ = Key$(i%) + regOpen$
  74.     Value$ = Directory$ + Open$(i%)
  75.     ret% = RegSetValue(1, Subkey$, 1, Value$, LEN(Value$))
  76.     ret% = WriteProfileString(WininiExt$, MID$(Extension$(i%), 2), 0)
  77.     IF Print$(i%) <> "" THEN
  78.         Subkey$ = Key$(i%) + regPrint$
  79.         Value$ = Directory$ + Print$(i%)
  80.         ret% = RegSetValue(1, Subkey$, 1, Value$, LEN(Value$))
  81.     END IF
  82. NEXT i%
  83.  
  84. IF GetModuleHandle("WSWINDLL") <> 0 THEN
  85.     StatusMsg ""
  86. END IF
  87.  
  88. 
  89. *****  WARNING *****
  90. This is a WSWin macro file.
  91. Subsequent data is binary information and should not be modified.
  92. # MF # 1.0None762570869:jΩ.Y6
  93. 1ç
  94. 1ê
  95. 1ë
  96. 1è
  97. 1ï
  98. 8    îÇ
  99. 8    
  100. 2î0Äç    Äì
  101. 8
  102. 2î0Éê    ÉÅ
  103. 8 2î0Æë    Ææ
  104. 8
  105. 2î0öè    öô
  106. 8
  107. 2î0ûï    ûò
  108. 8îù
  109. 82î0Öç    Öÿ
  110. 82î0¢ê    ¢Ü
  111. 82î0¥ë    ¥£
  112. 82î0ƒè    ƒ₧
  113. 82î0áï    áò
  114. 8îí
  115. 82î0úç    úó
  116. 82î0Ñê    Ññ
  117. 82î0ºë    ºª
  118. 82î0⌐è    ⌐¿
  119. 82î0½ï    ½¬
  120. 8îå
  121. 82î0¡ç    ¡¼
  122. 8 2î0»ê    »«
  123. 8 !2î0▒ë    ▒░
  124. 8!"2î0│è    │▓
  125. 8"#2î0┤ï    ┤¬
  126. 8#'    ╖╕
  127. 8'(    ╣║
  128. 8()    ╗╝
  129. 8)3┌┘═┌█╪█
  130. 833 â╪▌â
  131. 835    ▐▀
  132. 856πß
  133. απΣσ"µ▐Στß
  134. ατΦΘ"ΩµΦ"δΩΓ    ▐δ
  135. 867"φ▐∞    ▐φ
  136. 877?≥
  137. ∩≥≤⌠⌡≡÷±
  138. ∩÷≈°╥≤▐⌡≈∙
  139. â∙ù·â
  140. 87?8
  141. 889²ⁿ√²■
  142. 89:
  143. ∩╪
  144. ∩ ╧╡ 
  145. 8:;
  146. ╡    
  147. 8;<
  148. - ╡Ç â  
  149. 8<=Ç
  150. 
  151. 8=? ╡    ╡▄
  152. 8?B¬
  153. ∩─╡ 
  154. 8BC
  155. ∩ !"─╡╡ "# #
  156. 8CC< &╡¬'Ç %╡'() *( â&*+â
  157. 8C<D",╡     ╡,
  158. 8DG-àîÇ.îîÇâî-1â
  159. 8GH2Ç2î03ê4Ç2î05ë2î06ë
  160. 678╜23457 
  161. 8HI9Ç2î0:ë;Ç2î0<ç2î0=ç
  162. =>?╜9:;<> 
  163. 8IJ2î0Aë"BA╖    @B
  164. 8JK2î0Cè"D╡C    ╢D
  165. 8KLEÇFÇ
  166. ╢GH╜E@F╢G 
  167. 8LM2î0Jê
  168. -IJùK ╠╗IKL L
  169. 8MM2î0Nï âN¬Oâ
  170. 8MO2î0Pë"QP╣    @Q
  171. 8OP2î0Rï"S╡R    ╢S
  172. 8PQTÇUÇ
  173. ╢VW╜T@U╢V 
  174. 8QS0
  175. 8ST(Y┘═YZ âZ[â
  176. 8T(V\¬√\]`~oÇ____________________.Ç.Ç.Ç .Ç-.Ç5.Ç;.ÇA.ÇN.Ç^.Ç    l.Ç
  177. z.Ç ê.Ç û.Ç
  178. ñ.Ç▓.Ç╢.Ç╣.Ç╜.Ç└.Ç┬.Ç─.Ç╞.Ç╔.Ç╠.Ç╧.Ç╥.Ç╘.Ç╓.Ç┌.Ç▄.Ç▐.Çα.Ç Γ.Ç!Σ.Ç"Θ.Ç#∞.Ç$≡.Ç%⌡.Ç&ⁿ.Ç'/Ç(
  179. /Ç)/Ç*/Ç+/Ç,"/Ç-(/Ç.-/Ç/3/Ç06/Ç1;/Ç2@/Ç3B/Ç4E/Ç5J/Ç6N/Ç7T/Ç8Y/Ç9`/Ç:g/Ç;l/Ç<o/Ç=w/Ç>y/Ç?{/Ç@/ÇAê/ÇBî/ÇCÅ/ÇDù/ÇE₧/ÇFú/ÇG¡/ÇH┤/ÇI╣/ÇJ╜/ÇK┬/ÇL╟/ÇM═/ÇN╤/ÇO╒/ÇP▄/ÇQπ/ÇRΩ/ÇS≡/ÇT≈/ÇU0ÇV
  180. 0ÇW0ÇX$0ÇY10ÇZ:0Ç[G0Ç\P0Ç]X0Ç^`0Ç_h0Ç`q0Çav0Çb{0ÇcÇ0Çdç0ÇeÄ0Çfö0Çg¢0Çh¥0Çió0Çj¿0Çk«0Çl╡0Çm╛0Çn╟0Ço╦0Çp╙0Çq╫0Çr▄0ÇsΓ0ÇtΦ0Çuε0Çv⌠0Çw∙0Çx■0Çy1Çz1Ç{1Ç|1Ç}╖|  ╖|+╖|+    ╖|╖|╖|  ╖| ╖|    +P  (╖|+  *╖|
  181.           7╖|
  182.           B╖|
  183.           G╖|
  184.               M╖|
  185.            T╖|          W╖|+      w╖|      ç|╖|+      â╖|      êê╖|+      æ╖|      ëû╖|+      Ñ╖|      è¬╖|+      ╝╖|      ï┴╖|+  ├╖|+      π╖|      çΦ╖|+      ∩╖|      ê⌠╖|+       ╖|      ë╖|+      ╖|      è╖|      ï"╖|+  $╖|+      A╖|      çG╖|+      N╖|      êT╖|+      ]╖|      ëc╖|+      t╖|      èz╖|+      }╖|      ïâ╖|+      º╖|      ç¡╖|+      ┤╖|      ê║╖|+      ├╖|      ë╔╖|+      ┌╖|      èα╖|      ïµ╖|
  186.     @      ±╖|
  187.     @      °╖|
  188.           ╖|+      ╖|
  189.           !╖|+      8╖|
  190.           C╖|+      P╖|çB╛\╖|h╖|m╖|t╖||╖|é╖|ç╖|àB┼ƒ╖|¿╖|║╖|─╖|╬╖|▀╖|σ╖|≡╖|àB
  191. ┼╖|àB┼╖|╖|àB┼+╖|1╖|5╖|àB╙@╖|G╖|L╖|R╖|Z╖|a╖|          h╖|+      s╖|      y╖|  ╖|  öä╖|  ┤ë╖|
  192.           Ä╖|+      ┘╖|
  193. ë▐╖|+  
  194. ß╖|+      ╖|  ╖|      ╖|     %╖|      +╖|  1╖|      7╖|     =╖|      C╖|      I╖|+      p╖|      v╖|  ·{╖|à1╖|+      ì╖|+  !É╖|  û╖|  £╖|     ó╖|      ¿╖|  «╖|  ┤╖|     ║╖|  └╖|  ·┼╖|A>╧╖|+      ╖|      ╖|     ╖|          ╖|+   ╖|  #╖|     )╖|  /╖|  5╖|     ;╖|  A╖|          F╖|ç<J╖|     P╖|  \U╖|+      Y╖|      _╖|  öd╖|
  195. ë,j╖|      p╖|     v╖|+      ~╖|+      Å╖|+      Ö╖|      ƒ╖|      Ñ╖|      ½╖|  ▒╖|  ╖╖|     ╜╖|      ├╖|  ╔╖|+      ╪╖|      ▐╖|      Σ╖|  Ω╖|  ≡╖|     ÷╖|      ⁿ╖|  ╖|  ö╖|
  196. ë3╖|  ╖|  ╖|       ╖|     &╖|  ,╖|  ö1╖|      7╖|  <╖|  ╢A╖|  ─G╖|  «M╖|  ▐S╖|  Y╖|      ê_╖|  e╖|      ëk╖|      ëq╖|  w╖|     }╖|  â╖|      ëë╖|  Å╖|      çò╖|      ç¢╖|  í╖|     º╖|
  197.           »╖|      ë╡╖|      ╗╖|      è┴╖|      ╟╖|  ═╖|  ╙╖|  ┘╖|     ▀╖|      σ╖|      êδ╖|  ±╖|  °╖|  ╨■╖|      ï╖|  ╨ ╖|      ë╖|      ╖|      ï ╖|      '╖|  .╖|  5╖|  <╖|     C╖|  I╖|      P╖|  W╖|  ]╖|      d╖|     k╖|m╖|????01CANCELERRORNUM[T1]
  198. MAXKEY%4DESCRIPTION$EXTENSION$KEY$OPEN$PRINT$I%"WordStar for Windows Document"[T2]".wsd"[T3]"wswdoc"[T4]"wswin.exe %1"[T5]"wswin.exe %1 /p"[T6]2"WordStar for Windows Template"[T7]".wst"[T8]"wswtmplt"[T9]"wswin.exe %1 /n"[T10][T11]3"WordStar for Windows Macro"[T12]".wmc"[T13]"wswmac"[T14]"wsmaced.exe %1"[T15]""[T16]"WordStar for Windows Macro Dialog"[T17]".wdg"[T18]"wswdlg"[T19]"wsdlged.exe %1"[T20][T21]DIRECTORY$VALUE$REGOPEN$"\shell\open\command"REGPRINT$"\shell\print\command"WININIEXT$"Extensions"REGSETVALUE"shell.dll"HKEYSUBKEYKEYTYPEVALUESIZEGETPRIVATEPROFILESTRING"kernel"LPAPPLICATIONNAMELPKEYNAMELPDEFAULTLPRETURNEDSTRINGNSIZELPFILENAMEWRITEPROFILESTRINGGETMODULEHANDLELPAPPGETMODULEFILENAMEHINSTAPPMESSAGEBOX"user"HWNDLPMSGLPTITLEWFLAGSHINST%"WSWINDLL"[T22][T23][L1][L2]MSG$"Choose OK to update the registration database, or choose Cancel to quit."CHR$13"The registration database contains information "[T24][T25][T26][T27][T28][T29][T30][T31][T32]"necessary for OLE and Drag and Drop."[T33][L3]I2W"WSWin Macro"33[T34][T35][T36][T37][T38][T39][T40][T41][L4]STATUSMSG"Registering WSWin files in registration database . . ."[T42][T43]RET%255[T44][T45][T46][T47][T48][T49]POS%LEN[T50][L5]"\"[T51][L6]LEFT$[T52][T53]"WSWin""WSWinDirectory""wsw.ini"[T54][T55][T56][T57][T58][T59][T60][T61]"Shared Files"[T62][T63][T64][T65][T66][T67][T68][L7]RIGHT$[T69][T70][T71][T72][T73][L8][T74][F1][L9][L10][L11][L12][T75][T76][T77][T78][T79][T80][T81][T82][T83][T84][T85][T86][T87][T88]SUBKEY$[T89][T90][T91][T92][T93][T94][T95][T96][T97][T98][T99][T100][L13][T101][L14][T102][T103][T104][T105][T106][T107][T108][T109][L15][T110][T111][L16][T112][T113]
  199.