File:  [OS/2 SDKs] / pmsdk / samples / iniedit / utils.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:28:33 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: pmsdk-1989, HEAD
Microsoft OS/2 SDK PM 02-24-1989

/******************************* Module Header ******************************\
* Module Name: Utils.c
*
*
*
*
* PM OS2.ini Editor
*
* Miscellaneous Utility Functions
*
*
\***************************************************************************/

#define LINT_ARGS
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

#define INCL_WINERRORS
#define INCL_WINMESSAGEMGR

#include <os2.h>

#include "IniEdit.h"

/******************************** Globals **********************************/


/******************************* Externals *********************************/

extern HAB habIniEdit;

void ErrMessage( char *szMsg )
{

    char      szMsgBuf[132];
    ERRORID   ErrorNo;

    ErrorNo = WinGetLastError( habIniEdit );

    sprintf( szMsgBuf, "%s; Error: %p", szMsg, ErrorNo );

    WinMessageBox( HWND_DESKTOP, HWND_DESKTOP, szMsgBuf, "System Print", 0,
         MB_ICONEXCLAMATION );
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.