[Toc][Index]

DosGetMachineMode


Bindings:  C, MASM 

This call returns the current mode of the processor, whether the processor 
is running in the DOS mode or the OS/2 mode. This allows an application to 
determine whether a dynamic link call is valid or not. 
 DosGetMachineMode      (MachineMode) 
 
 MachineMode (PBYTE) - output 
    Address of the value to indicate the current processor mode. This 
    value may be: 
    Value     Definition 
    0         DOS mode 
    1         OS/2 mode. 
 rc (USHORT) - return 
    Return code description is: 
    0         NO_ERROR 
 
 Remarks 
 All dynamic link calls are available to an application if the MachineMode 
 value indicates the program is in OS/2 mode. This method provides a 
 self-tailoring application that allows the application to adapt to the 
 execution environment by limiting or enhancing the functions it provides. 
 
 If the MachineMode value indicates the program is in DOS mode, the 
 application is limited to a subset of dynamic link calls listed in the 
 Family API. 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs