MMCC MASTHEAD
Mid-Michigan Computer Consultants - Bay City, Michigan
 


CONTENTS       (old style)
Mid-Michigan Computer Consultants
509 Center
Bay City, Michigan

Sales (989) 892-9242
Support (989) 686-8860

Plb-0300.cfm v1.0


plb-t010.cfm
 

ANSI Standard PL/B Language and Visual PL/B

PL/B Windows API calls

NOTE TO OUR READERS
This web resource is written for our own use. But we feel strongly that the PL/B language should be shared with the software community. So feel free to use this at will! BUT PLEASE... if you find errors or omissions or have a better way to do something. TELL US! Dialog helps us all. Send e-mail to: support@mmcctech.com
High level languages such as PL/B provide the majority of functions that a programmer might need. But they don't do everything that is possible in a particular environment such as Windows.

The Windows API (Application Program Interface) call allows a programmer access to all the features and routines within Windows itself.

API DOCUMENTATION

Finding documentation to the Windows API can be a challenge. Most of the resources are aimed at the Visual BASIC or the "C" programmer. The PL/B API calls are very similar to those languages, but they are not exactly the same. You'll have to do some translation which means understanding the other languages. Visual BASIC resources seem to be the easiest to work with.

There are a number of web sites that contain good API information. Sunbelt has documented several of the most useful API calls and included the information in the code unit "PROFILE.INC" which is found in the "DEMO" folder that is created when you install the PLBWIN system.

NOTES

Before using an API you must define the thing with PL/B's PROFILE statement. This is the same as "declaring" the API in VB. For example:
Visual Basic:
Declare Function FindFirstFile Lib "kernel32.dll" _
       Alias "FindFirstFileA" _
       (ByVal lpFileName As String, _
       lpFindFileData As WIN32_FIND_DATA) As Long

PL/B:
FindFirst PROFILE  kernel32:  ;DLL name
       FindFirstFileA:   ;API name
       INT4:             ;File Handle return value
       DIM:              ;Search File Name
       DIM               ;FileData structure
To actually USE the PL/B profile you'd code:
   WINAPI  FindFirst GIVING FHANDLE USING NAME,FileData


Visual BASIC Notes

Data can be typed by designating as long or something like as string. The types of interest are MORE TO COME


v1.10

Write to MMCC Technical Support at:               Send e-mail to MMCC.
MMCC - Technical Support
600 W. Midland
Bay City, MI 48708
(989) 686-8860
© 1997 - 2021 MMCC - All Rights Reserved


Debugging Information
ColdFusion Server Enterprise 2021,0,0,323925
Template /pl-b/plb-0300.cfm
Time Stamp 02-Aug-21 08:05 PM
Locale English (US)
User Agent CCBot/2.0 (https://commoncrawl.org/faq/)
Remote IP 3.231.230.177
Host Name 3.231.230.177


Execution Time

Total Time Avg Time Count Template
15 ms 15 ms 1 top level D:\Websites\bcra-mlscom\mmcctech\pl-b\plb-0300.cfm
0 ms 0 ms 1 D:/Websites/bcra-mlscom/mmcctech/PL-B/PLB-Disclaimer.cfm
0 ms 0 ms 1 D:/Websites/bcra-mlscom/mmcctech/PL-B/Plb-t010.cfm
0 ms 0 ms 1 D:/Websites/bcra-mlscom/mmcctech/PL-B/Plb-t900.cfm
0 ms  STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
15 ms  TOTAL EXECUTION TIME
red = over 250 ms average execution time


Scope Variables

CGI Variables:
AUTH_PASSWORD=
AUTH_TYPE=
AUTH_USER=
CERT_COOKIE=
CERT_FLAGS=
CERT_ISSUER=
CERT_KEYSIZE=
CERT_SECRETKEYSIZE=
CERT_SERIALNUMBER=
CERT_SERVER_ISSUER=
CERT_SERVER_SUBJECT=
CERT_SUBJECT=
CF_TEMPLATE_PATH=D:\Websites\bcra-mlscom\mmcctech\pl-b\plb-0300.cfm
CONTENT_LENGTH=0
CONTENT_TYPE=
CONTEXT_PATH=
GATEWAY_INTERFACE=CGI/1.1
HTTPS=off
HTTPS_KEYSIZE=
HTTPS_SECRETKEYSIZE=
HTTPS_SERVER_ISSUER=
HTTPS_SERVER_SUBJECT=
HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING=br,gzip
HTTP_ACCEPT_LANGUAGE=en-US,en;q=0.5
HTTP_CONNECTION=Keep-Alive
HTTP_COOKIE=
HTTP_HOST=mmcctech.com
HTTP_REFERER=
HTTP_URL=/pl-b/plb-0300.cfm
HTTP_USER_AGENT=CCBot/2.0 (https://commoncrawl.org/faq/)
LOCAL_ADDR=192.168.162.152
PATH_INFO=
PATH_TRANSLATED=D:\Websites\bcra-mlscom\mmcctech\pl-b\plb-0300.cfm
QUERY_STRING=
REMOTE_ADDR=3.231.230.177
REMOTE_HOST=3.231.230.177
REMOTE_USER=
REQUEST_METHOD=GET
SCRIPT_NAME=/pl-b/plb-0300.cfm
SERVER_NAME=mmcctech.com
SERVER_PORT=80
SERVER_PORT_SECURE=0
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=Microsoft-IIS/10.0
WEB_SERVER_API=
Session Variables:
PLB_PRIVDIAG=0
Debug Rendering Time: 0 ms