home *** CD-ROM | disk | FTP | other *** search
/ For Beginners & Professional Hackers / cd.iso / docum / soft.doc / ncmain.eng < prev    next >
Encoding:
Text File  |  1992-02-11  |  1.7 KB  |  39 lines

  1. ***** ÄÅêæÇìêà êìÆàÉöàëæÇ Norton Commander ê View'àÉÄé *****
  2.  
  3. This is translation to english from message which discusses
  4. parameter passing from Norton Commander 3.0 to external
  5. viewers.
  6. Re: Re: ARCVIEW
  7. ------------------------------------------------------------
  8.  
  9. PK> I have been looking... But NC does not pass any
  10. PK> parameters except file name...
  11.  
  12. Well, it passes something, though uses non-standard way.
  13.  
  14. Offset PSP:80h...  First number is length in bytes...
  15. -------------------------------------------------------------
  16. 1  Length of command line from next byte to 0Dh.
  17. ?  File name to view (ASCIIZ, variable length!).
  18. 6  The signature 'Socha'+'\0', shows that called from NCMAIN.
  19. 2  011Fh, probably version of NC or some other ID...
  20. 2  Color set: 0=mono, 1=color, 2=black&white
  21. 1  FFh-Mouse AND mask, =0 if mouse is not installed
  22. 1  0=righthand mouse, 1=lefthand mouse.
  23. 2  0001H usually (probably Mouse XOR mask), =0 if no mouse.
  24. 2  0=Fullscreen mode (F3), 1=Quickview Mode (CTRL-Q)
  25. -------------------------------------------------------------
  26. Following data is defined only for Quickview mode
  27. -------------------------------------------------------------
  28. 2  X (column) 0=left view, 40=right view
  29. 2  Y (row)    0 usually, 1 if menu bar is visible
  30. 2  Height     21=full screen, 13=half screen, EGA43.., VGA50..
  31. 2  0000h  usually, changing does not matter
  32. 2  0001h  usually, setting to 0 causes to pause before continuing
  33. 4  Pointer _into_ NCMAIN. This is where the fun begins...
  34. ?  File name once more (variable ASCIIZ)
  35. ?  junk?
  36. 1  0Dh (CR)   command line terminator.
  37. -------------------------------------------------------------
  38. Plus: PSP:5Ch - Filename; PSP:6Ch - Current directory
  39.