Discussion:
How to enable clipboard usage in a 16-bit DOS program.
(too old to reply)
R.Wieser
2019-08-22 15:21:33 UTC
Permalink
Hello all,

On my XPsp3 machines I've tried to use INT 2F, AX=17xxx Clipboard functions
(in a 16-bit DOS program), but failed. Some googeling told me that
"winoldap" was involved, but starting "winoldap.mod" located in
\windows\system32 just results in an error with the caption "can't runt 16
bit Windows program", with "Shared WOWExec" in its body.

The question: How do I enable clipboard usage in DOS programs (INT 2F,
AH=17) ? And what has "winoldap.mod" to do with it/how do I use it ?

Regards,
Rudy Wieser
JJ
2019-08-22 21:11:43 UTC
Permalink
Post by R.Wieser
Hello all,
On my XPsp3 machines I've tried to use INT 2F, AX=17xxx Clipboard functions
(in a 16-bit DOS program), but failed. Some googeling told me that
"winoldap" was involved, but starting "winoldap.mod" located in
\windows\system32 just results in an error with the caption "can't runt 16
bit Windows program", with "Shared WOWExec" in its body.
The question: How do I enable clipboard usage in DOS programs (INT 2F,
AH=17) ? And what has "winoldap.mod" to do with it/how do I use it ?
Regards,
Rudy Wieser
It's same as clipboard access via Windows program: open clipboard, get/set
clipboard data, then close clipboard. But it's only available in Windows
95/98/ME. None of the NT based Windows support the WINOLDAP API. You can
check this using AX=1700.
R.Wieser
2019-08-23 07:19:16 UTC
Permalink
JJ,
You can check this using AX=1700.
Thats what my old W98 (basic testing) program did and how I discovered it
didn't work on XP. :-)
None of the NT based Windows support the WINOLDAP API
In that regard, any idea what WINOLDAP.MOD (or WOWEXEC.EXE) is ment for ?
But it's only available in Windows 95/98/ME
I can't say that for sure yet (no idea what the above two programs could
mean for me), but the underlying mechanism is still available in XP and
seems to be rather simple to implement:
https://www.ragestorm.net/tutorial?id=27
http://sta.c64.org/blog/dosvddaccess.html

Thanks for the info.

Regards,
Rudy Wieser

P.s.
If you are wondering why the heck I asked when having this info: after
posting I (ofcourse) kept on trying to find some info, and by luck stumbled
over the above.

Man-o-man, the ammount of /crap/ google returns when seaching for "INT 27
clipboard" (and others) is just staggering. On the other hand, DuckDuckGo
didn't do much better ... :-(
JJ
2019-08-24 02:26:43 UTC
Permalink
Post by R.Wieser
JJ,
You can check this using AX=1700.
Thats what my old W98 (basic testing) program did and how I discovered it
didn't work on XP. :-)
None of the NT based Windows support the WINOLDAP API
In that regard, any idea what WINOLDAP.MOD (or WOWEXEC.EXE) is ment for ?
WINOLDAP (WinOldApp) is described as a DDE support component for DOS
programs, according to Win3.1 SDK. WOW (Windows On Windows) is part of the
16-bit VM core. WOWEXEC is just an internal WOW tool.
Post by R.Wieser
But it's only available in Windows 95/98/ME
I can't say that for sure yet (no idea what the above two programs could
mean for me), but the underlying mechanism is still available in XP and
https://www.ragestorm.net/tutorial?id=27
http://sta.c64.org/blog/dosvddaccess.html
Thanks for the info.
Regards,
Rudy Wieser
P.s.
If you are wondering why the heck I asked when having this info: after
posting I (ofcourse) kept on trying to find some info, and by luck stumbled
over the above.
Interresting API. :) Pitty that it's only for 32-bit Windows code.
Post by R.Wieser
Man-o-man, the ammount of /crap/ google returns when seaching for "INT 27
clipboard" (and others) is just staggering. On the other hand, DuckDuckGo
didn't do much better ... :-(
Nothing is better than Google when searching for something specific, as long
as we have the correct query. Otherwise, it'll shove us crap, because Google
always put popular topics on top of seach result. Search exclusion is
usually necessary in this case.
R.Wieser
2019-08-24 06:55:40 UTC
Permalink
JJ,
Post by JJ
WINOLDAP (WinOldApp) is described as a DDE support
component for DOS programs,
Yes, I found that description too, but thats for the EXE variant. The one I
have has a MOD extension, which I could find nothing specific for. In
short, I have it, but I have no idea what it does or how to use it.

And by the way, I just found that starting "winoldap.mod" also starts
"wowexec.exe" (which keeps running).
Post by JJ
Nothing is better than Google when searching for something
specific, as long as we have the correct query.
:-) "the correct query" ? That sounds like an "if you hold it just right"
(an IIRC iphone reference). :-p

Just put "INT 27 clipboard" into google, and be amazed at how it refuses to
return /anything/ in relation to DOS INTs, let alone in relation to the
clipboard. Adding "DOS" at the front does give a hit, but putting it at the
end doesn't <whut?!>. To me it looks like a crapshoot.

In this particular case DuckDuckGo gives a much better result.
Post by JJ
Otherwise, it'll shove us crap, because Google
always put popular topics on top of seach result.
:-) I fully forgot that I already scrub googles search-result pages from the
ever-present image results, advertisements and alike (greasemonkey).

Regards,
Rudy Wieser
r***@gmail.com
2019-08-31 06:23:44 UTC
Permalink
Hi,
Post by R.Wieser
On my XPsp3 machines I've tried to use INT 2F, AX=17xxx Clipboard functions
(in a 16-bit DOS program), but failed. Some googeling told me that
"winoldap" was involved, but starting "winoldap.mod" located in
\windows\system32 just results in an error with the caption "can't runt 16
bit Windows program", with "Shared WOWExec" in its body.
The question: How do I enable clipboard usage in DOS programs (INT 2F,
AH=17) ? And what has "winoldap.mod" to do with it/how do I use it ?
There are two related archives (.ZIP, .ARJ) that may help you:

1). NTOLDAPP
? Claus Färber
= ntold096b.zip (84 kb)
* http://www.phatcode.net/downloads.php?id=188
"NTOLDAPP is a TSR that provides Windows NT/2K/XP clipboard support
for DOS programs that would use WINOLDAP in Windows 3.x/95."

2). DOSCLIP
? Veit Kannegieser
= dosclip.arj (4 kb)
* https://sites.google.com/site/rugxulo/dosclip.arj
"??" [it's just a DOS TSR for using clipboard as if under Win 3.x]

Vista (NT 6) and newer have their own CLIP.EXE utility to transfer
data back and forth.
R.Wieser
2019-08-31 07:24:06 UTC
Permalink
rugxulo,
[Snip]

Thanks for mentioning them. :-)

After becoming aware that XP itself doesn't (seem to) have what is needed to
support the INT 0x2F, AH=0x17 DOS API I did some more searching and also
found that NTOLDAPP, which I than used to figure out how it actually
accesses the windows clipboard. Which is surprisingly easy by the way.
As a result I'm now skipping the INT 0x2F, ah=0x17 step altogether.

And I'll take a look at the latter (if only to see which method they are
using: the INT 0x2F or the keystroke injection one)

As for the CLIP.EXE way ? I'm still on XP(sp3). :-) Also, I have no idea
if it world work any better than the one thats build into XP (which doesn't
work for the targetted DOS program - most of the chars get lost :-( )

Regards,
Rudy Wieser
Benjamin David Lunt
2019-11-15 00:33:30 UTC
Permalink
Post by R.Wieser
Hello all,
On my XPsp3 machines I've tried to use INT 2F, AX=17xxx Clipboard
functions (in a 16-bit DOS program), but failed. Some googeling told me
that "winoldap" was involved, but starting "winoldap.mod" located in
\windows\system32 just results in an error with the caption "can't runt 16
bit Windows program", with "Shared WOWExec" in its body.
The question: How do I enable clipboard usage in DOS programs (INT 2F,
AH=17) ? And what has "winoldap.mod" to do with it/how do I use it ?
Regards,
Rudy Wieser
Hi guys,

Long time since I have been here. I am trying to get back to some of
this stuff. Slowly but surely.

Anyway, I have done some stuff like this. Have a look at:

www.fysnet.net/clipbrd.htm

I also note that you must first run NTOLDAPP.COM to get it to work with
WinXP. (Links to this app at that page). It adds the capability to WinXP.

Anyway, hope to continue to be around.

Ben
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Forever Young Software
http://www.fysnet.net/index.htm
http://www.fysnet.net/osdesign_book_series.htm
To reply by email, please remove the zzzzzz's

Batteries not included, some Assembly required.
Loading...