Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

This file will self-destruct in five minutes.


devel / comp.os.os2.programmer.misc / Re: win32 via odin

SubjectAuthor
* win32 via odinPaul Edwards
`* Re: win32 via odinDave Yeo
 `* Re: win32 via odinPaul Edwards
  `* Re: win32 via odinxhajt03
   `* Re: win32 via odinPaul Edwards
    +* Re: win32 via odinPaul Edwards
    |+- Re: win32 via odinPaul Edwards
    |+* Re: win32 via odinxhajt03
    ||+* Re: win32 via odinPaul Edwards
    |||+- Re: win32 via odinPaul Edwards
    |||`* Re: win32 via odinPaul Edwards
    ||| `* Re: win32 via odinxhajt03
    |||  `* Re: win32 via odinPaul Edwards
    |||   `- Re: win32 via odinxhajt03
    ||`* Re: win32 via odinPaul Edwards
    || `* Re: win32 via odinPaul Edwards
    ||  `* Re: win32 via odinPaul Edwards
    ||   `- Re: win32 via odinPaul Edwards
    |`- Re: win32 via odinDave Yeo
    `* Re: win32 via odinDave Yeo
     `* Re: win32 via odinPaul Edwards
      `* Re: win32 via odinDave Yeo
       `* Re: win32 via odinDave Yeo
        `* Re: win32 via odinPaul Edwards
         `* Re: win32 via odinPaul Edwards
          `* Re: win32 via odinPaul Edwards
           `- Re: win32 via odinPaul Edwards

Pages:12
Re: win32 via odin

<ulu8bu$g005$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33&group=comp.os.os2.programmer.misc#33

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazilah@gmail.com (Paul Edwards)
Newsgroups: comp.os.os2.programmer.misc
Subject: Re: win32 via odin
Date: Wed, 20 Dec 2023 16:24:29 +0800
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <ulu8bu$g005$1@dont-email.me>
References: <a29691a7-9701-4935-a5b2-986c5f5c2bddn@googlegroups.com>
<Aj3sM.255151$edN3.186930@fx14.iad>
<83234834-db2d-42ac-8bc6-0fcf631f53b9n@googlegroups.com>
<7ee4e13c-63ae-4c02-a17d-b183c5045e92n@googlegroups.com>
<e48bb3c4-e0c0-409f-b13b-c172afb74b47n@googlegroups.com>
<fc31cff0-19f8-4a52-a14b-976c91b3387an@googlegroups.com>
<79c75676-6bce-4df4-83fd-50327e0d81a8n@googlegroups.com>
<ultju1$d6rl$1@dont-email.me> <ulu0rg$ep3t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Dec 2023 08:24:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="98474faed3c299e5462767fa643854c6";
logging-data="524293"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+B/2ohgs5xinExNYsu8gYLMMGXzyETSSk="
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:vgIaTfm8U7Xe06gSOM7CrL1zeq4=
In-Reply-To: <ulu0rg$ep3t$1@dont-email.me>
 by: Paul Edwards - Wed, 20 Dec 2023 08:24 UTC

I have some more information.

In an OS/2 window, when I get the
current input mode, it is already
set to binary!

However, I can't just leave it at
that.

I need to actually set it to binary
myself, otherwise it will give me the
old 22 error about being presentation
manager.

I'm thinking I will just make it work
in fullscreen. That should be good
enough for my purposes (running Win32
software under PDOS-generic).

BFN. Paul.

Re: win32 via odin

<ululkd$i1jq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=34&group=comp.os.os2.programmer.misc#34

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazilah@gmail.com (Paul Edwards)
Newsgroups: comp.os.os2.programmer.misc
Subject: Re: win32 via odin
Date: Wed, 20 Dec 2023 20:10:50 +0800
Organization: A noiseless patient Spider
Lines: 74
Message-ID: <ululkd$i1jq$1@dont-email.me>
References: <a29691a7-9701-4935-a5b2-986c5f5c2bddn@googlegroups.com>
<Aj3sM.255151$edN3.186930@fx14.iad>
<83234834-db2d-42ac-8bc6-0fcf631f53b9n@googlegroups.com>
<7ee4e13c-63ae-4c02-a17d-b183c5045e92n@googlegroups.com>
<e48bb3c4-e0c0-409f-b13b-c172afb74b47n@googlegroups.com>
<fc31cff0-19f8-4a52-a14b-976c91b3387an@googlegroups.com>
<79c75676-6bce-4df4-83fd-50327e0d81a8n@googlegroups.com>
<ultju1$d6rl$1@dont-email.me> <ulu0rg$ep3t$1@dont-email.me>
<ulu8bu$g005$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Dec 2023 12:10:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="98474faed3c299e5462767fa643854c6";
logging-data="591482"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185vT2yAplkd5OpUmVZKN1hI9bSk7ER658="
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:DerKIHbDCn+p8T92t/Q3CooLIDI=
In-Reply-To: <ulu8bu$g005$1@dont-email.me>
 by: Paul Edwards - Wed, 20 Dec 2023 12:10 UTC

I couldn't find anything further on a
web search, but using google groups
instead of google search provided some
things.

I suspect that I need to make this Win* call:

https://groups.google.com/g/comp.os.os2.programmer.misc/c/490M96gC9-8/m/5CEDiLJGC_0J

Using DosDevIOCtl functions is not sufficient if you use PM: you also
need to call WinSetKeyboardStateTable.

BYTE KeyState[257];

c = DosDevIOCtl(hf,
IOCTL_KEYBOARD,
KBD_GETSHIFTSTATE,

WinSetKeyboardStateTable(HWND_DESKTOP, KeyState, FALSE);

KeyState[VK_NUMLOCK] |= 0x01;
ss.fsState |= NUMLOCK_ON;

/* seting keyboard state */
WinSetKeyboardStateTable(HWND_DESKTOP, KeyState, TRUE);

rc = DosDevIOCtl(hf,
IOCTL_KEYBOARD,
KBD_SETSHIFTSTATE,

https://groups.google.com/g/comp.os.os2.programmer.misc/c/xb-rPCvqxfk/m/cojpJL1mEioJ

I would never have guessed that WinSetKeyboardStateTable
was needed for a VIO application. Chalk up one more thing I've
learnt today.

https://groups.google.com/g/comp.os.os2.programmer.misc/c/DNnUOfAbwG0/m/UQx_EiwbsSoJ

https://groups.google.com/g/comp.os.os2.programmer.misc/c/mihdZdxf4as/m/FVjpLDtPaXQJ

https://groups.google.com/g/comp.os.os2.programmer.misc/c/g59l-qRRrUM/m/COOAM9dtnjIJ

(and more)

I assume something similar is required for my VIO
app, but I'm changing mode rather than the keyboard
state.

Regardless - I'm reluctant to do a Win* call.

I would like this app to only be dependent on
32-bit functions in doscalls.dll.

So I'll just mark it as fullscreen for now.

BTW, I was going to post on os2world.com, but
it didn't recognize my userid and the captcha
did an infinite spin (as google groups does
when I try to post too), so I'm glad to have
a newreader to access a globally-owned service.

BTW, it looks like that "movement" already
existed, and died in the late 90s. So 20+
years later I'm just trying to do a revival!

Oh - also, the original comment about DosRead
not giving cursor keys appears to be correct
too - you use DosDevIOCtl to do the read.
That's different from both MSDOS and Unix - I
think for different reasons.

BFN. Paul.


devel / comp.os.os2.programmer.misc / Re: win32 via odin

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor