|         Laaca Czech republic, 16.02.2023, 00:02  | 
     PSP manipulation from DPMI programs (Developers) | 
    
I am trying to debug my test program which should create a new environment variable and then call the child process with normal Exec call. ---  | 
   
|         Japheth Germany (South), 16.02.2023, 05:25 @ Laaca  | 
     PSP manipulation from DPMI programs | 
    
> And if I want to create a new environment variable I have to do all the ---  | 
   
|         tkchia 16.02.2023, 11:18 (edited by tkchia, 16.02.2023, 11:32) @ Laaca  | 
     PSP manipulation from DPMI programs | 
    
Hello Laaca, ---  | 
   
|         Laaca Czech republic, 16.02.2023, 19:46 @ tkchia  | 
     PSP manipulation from DPMI programs | 
    
Well, I don't know. It seems to me that "int 0x21, ax = 0x4b00" is maybe overkill. Modification of the parent's PSP (which will be inherited to child) seems to be easier for me. For now I solve it using a program parameters (like "CHILD.EXE param1 param2"). It works but it is very ugly. So I am looking for some better solution. The newly created environment variable seems to be quite elegant. ---  | 
   
|         tom Germany (West), 16.02.2023, 20:16 @ Laaca  | 
     PSP manipulation from DPMI programs | 
    
> For now I solve it using a program  | 
   
|         Laaca Czech republic, 16.02.2023, 20:48 @ tom  | 
     PSP manipulation from DPMI programs | 
    
> > For now I solve it using a program ---  | 
   
|         tkchia 16.02.2023, 21:23 (edited by tkchia, 16.02.2023, 21:51) @ Laaca  | 
     PSP manipulation from DPMI programs | 
    
Hello Laaca, ---  | 
   
|         tkchia 16.02.2023, 21:28 @ Laaca  | 
     PSP manipulation from DPMI programs | 
    
Hello Laaca, ---  | 
   
|         tkchia 16.02.2023, 21:35 @ Laaca  | 
     PSP manipulation from DPMI programs | 
    
(Also by the way, I am surprised that this whole thing is even a problem at all in Pascal land.  Classical C compilers that target MS-DOS have (mostly) included functions named  ---  | 
   
|         Rugxulo Usono, 17.02.2023, 08:35 @ tkchia  | 
     PSP manipulation from DPMI programs | 
    
> (Also by the way, I am surprised that this whole thing is even a problem at  | 
   
|         tkchia 17.02.2023, 11:21 @ Rugxulo  | 
     PSP manipulation from DPMI programs | 
    
Hello Rugxulo, ---  | 
   
|         marcov 17.02.2023, 16:00 @ tkchia  | 
     PSP manipulation from DPMI programs | 
    
> I am curious to know whether this is supported on the go32v2 target.  And,  | 
   
|         Laaca Czech republic, 17.02.2023, 08:56 @ tkchia  | 
     PSP manipulation from DPMI programs | 
    
I see! I understood why you think that I should reimplement the Exec function. ---  | 
   
|         tkchia 17.02.2023, 11:07 (edited by tkchia, 17.02.2023, 13:54) @ Laaca  | 
     PSP manipulation from DPMI programs | 
    
Hello Laaca, ---  | 
   
|         Laaca Czech republic, 18.02.2023, 00:52 @ tkchia  | 
     PSP manipulation from DPMI programs | 
    
Uff, I got it to work. ---  | 
   
|         marcov 17.02.2023, 16:02 @ Laaca  | 
     PSP manipulation from DPMI programs | 
    
> So we see that ENVP points to internal structure  | 
   
|         tkchia 16.02.2023, 11:26 @ Laaca  | 
     PSP manipulation from DPMI programs | 
    
Hello Laaca, ---  | 
   
|         tkchia 16.02.2023, 17:14 @ Laaca  | 
     PSP manipulation from DPMI programs | 
    
Hello Laaca, ---  | 
   
Thread view