windows/ExternalFunctions.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <process.h>
#include <direct.h>
#include <windows.h>
#include <CommCtrl.h>
#include "RexxCore.h"
#include "StringClass.hpp"
#include "ArrayClass.hpp"
#include "RexxActivity.hpp"
#include "RexxActivation.hpp"
#include "MethodClass.hpp"
#include "SourceFile.hpp"
#include "RexxInternalApis.h"
#include "ProtectedObject.hpp"
#include "StringUtil.hpp"
#include "PackageManager.hpp"
#include "SystemInterpreter.hpp"
Include dependency graph for windows/ExternalFunctions.cpp:

Go to the source code of this file.

Classes

struct  _ENVENTRY
 

Macros

#define DIRLEN   256 /* length of a directory */
 
#define MAX_FREQUENCY   32767
 
#define MIN_FREQUENCY   37
 
#define MAX_DURATION   60000
 
#define MIN_DURATION   0
 
#define FILESPEC_DRIVE   'D'
 
#define FILESPEC_PATH   'P'
 
#define FILESPEC_NAME   'N'
 
#define FILESPEC_LOCATION   'L'
 
#define FILESPEC_EXTENSION   'E'
 

Typedefs

typedef struct _ENVENTRY ENVENTRY
 

Functions

 RexxRoutine2 (CSTRING, sysBeep, wholenumber_t, Frequency, wholenumber_t, Duration)
 
 RexxRoutine1 (RexxStringObject, sysDirectory, OPTIONAL_CSTRING, dir)
 
 RexxRoutine2 (RexxStringObject, sysFilespec, CSTRING, option, CSTRING, name)
 
static bool addMBStyle (CSTRING other, ULONG *style)
 
 RexxRoutine5 (int, sysMessageBox, CSTRING, text, OPTIONAL_CSTRING, title, OPTIONAL_CSTRING, button, OPTIONAL_CSTRING, icon, OPTIONAL_CSTRING, other)
 

Macro Definition Documentation

◆ DIRLEN

#define DIRLEN   256 /* length of a directory */

Definition at line 71 of file windows/ExternalFunctions.cpp.

◆ FILESPEC_DRIVE

#define FILESPEC_DRIVE   'D'

Definition at line 79 of file windows/ExternalFunctions.cpp.

◆ FILESPEC_EXTENSION

#define FILESPEC_EXTENSION   'E'

Definition at line 83 of file windows/ExternalFunctions.cpp.

◆ FILESPEC_LOCATION

#define FILESPEC_LOCATION   'L'

Definition at line 82 of file windows/ExternalFunctions.cpp.

◆ FILESPEC_NAME

#define FILESPEC_NAME   'N'

Definition at line 81 of file windows/ExternalFunctions.cpp.

◆ FILESPEC_PATH

#define FILESPEC_PATH   'P'

Definition at line 80 of file windows/ExternalFunctions.cpp.

◆ MAX_DURATION

#define MAX_DURATION   60000

Definition at line 75 of file windows/ExternalFunctions.cpp.

◆ MAX_FREQUENCY

#define MAX_FREQUENCY   32767

Definition at line 73 of file windows/ExternalFunctions.cpp.

◆ MIN_DURATION

#define MIN_DURATION   0

Definition at line 76 of file windows/ExternalFunctions.cpp.

◆ MIN_FREQUENCY

#define MIN_FREQUENCY   37

Definition at line 74 of file windows/ExternalFunctions.cpp.

Typedef Documentation

◆ ENVENTRY

typedef struct _ENVENTRY ENVENTRY

Function Documentation

◆ addMBStyle()

static bool addMBStyle ( CSTRING  other,
ULONG *  style 
)
static

Helper function for sysMessageBox(). Parses the other message box style argument and adds the styles specified.

Parameters
otherThe 'additional message box styles' argument to RxMessageBox(). This can be more than one style keyword, separated by spaces.
stylePointer to the MessageBox style flags collected so far. On return this will be augmented with the additional styles.
Returns
True on no error, false if the user passed an unrecognizable keyword and a condition should be raised.
Note
Assumes other is not NULL.

Definition at line 326 of file windows/ExternalFunctions.cpp.

Referenced by RexxRoutine5().

◆ RexxRoutine1()

RexxRoutine1 ( RexxStringObject  ,
sysDirectory  ,
OPTIONAL_CSTRING  ,
dir   
)

Definition at line 137 of file windows/ExternalFunctions.cpp.

References NO_CSTRING.

◆ RexxRoutine2() [1/2]

RexxRoutine2 ( CSTRING  ,
sysBeep  ,
wholenumber_t  ,
Frequency  ,
wholenumber_t  ,
Duration   
)

◆ RexxRoutine2() [2/2]

RexxRoutine2 ( RexxStringObject  ,
sysFilespec  ,
CSTRING  ,
option  ,
CSTRING  ,
name   
)

◆ RexxRoutine5()

RexxRoutine5 ( int  ,
sysMessageBox  ,
CSTRING  ,
text  ,
OPTIONAL_CSTRING  ,
title  ,
OPTIONAL_CSTRING  ,
button  ,
OPTIONAL_CSTRING  ,
icon  ,
OPTIONAL_CSTRING  ,
other   
)

Definition at line 419 of file windows/ExternalFunctions.cpp.

References addMBStyle().