OS/2 Miscellaneous API Differences

The following describes the implementation differences between the OS2Linux library and the real OS/2 miscellaneous APIs.

These APIs are included in your application by including the following definition in your application source file.

#define INCL_DOSMISC

DosGetMessage

APIRET APIENTRY DosGetMessage(PCHAR* pTable, ULONG cTable, PCHAR pBuf,
                              ULONG cbBuf, ULONG msgnumber, PSZ pszFile,
                              PULONG pcbMsg);

DosErrClass

APIRET APIENTRY DosErrClass(ULONG code, PULONG pClass, PULONG pAction,
                            PULONG pLocus);

DosInsertMessage

APIRET APIENTRY DosInsertMessage(PCHAR* pTable, ULONG cTable, PSZ pszMsg,
                                 ULONG cbMsg, PCHAR pBuf, ULONG cbBuf,
                                 PULONG pcbMsg);

DosPutMessage

APIRET APIENTRY DosPutMessage(HFILE hfile, ULONG cbMsg, PCHAR pBuf);

DosQuerySysInfo

APIRET APIENTRY DosQuerySysInfo(ULONG iStart, ULONG iLast, PVOID pBuf,
                                ULONG cbBuf);

DosScanEnv

APIRET APIENTRY DosScanEnv(PSZ pszName, PSZ *ppszValue);

DosSearchPath

APIRET APIENTRY DosSearchPath(ULONG flag, PSZ pszPathOrName, PSZ pszFilename,
                              PBYTE pBuf, ULONG cbBuf);

DosQueryMessageCP

APIRET APIENTRY DosQueryMessageCP(PCHAR pb, ULONG cb, PSZ pszFilename,
                                  PULONG cbBuf);

DosQueryRASInfo

APIRET APIENTRY DosQueryRASInfo(ULONG Index, PPVOID Addr);

DosSetExtLIBPATH

APIRET APIENTRY DosSetExtLIBPATH(PSZ pszExtLIBPATH, ULONG flags);

DosQueryExtLIBPATH

APIRET APIENTRY DosQueryExtLIBPATH(PSZ pszExtLIBPATH, ULONG flags);