MFSH SYSCTL: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:MFSH_SYSCTL}} Do additional system controls. Perform some actions, like getting the DevHelp entry point. ==Syntax== int far pascal MFSH_SYSCTL(ulType, void far..." |
m →Sample |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:MFSH_SYSCTL}} | {{DISPLAYTITLE:MFSH_SYSCTL}} | ||
Do additional system controls. Perform some actions, like getting the DevHelp entry point. | Do additional system controls. Perform some actions, like getting the DevHelp entry point. | ||
==Syntax== | ==Syntax== | ||
int far pascal MFSH_SYSCTL(ulType, void far *ptr) | int far pascal MFSH_SYSCTL(ulType, void far *ptr) | ||
==Parameters== | ==Parameters== | ||
; ulType: specifies the control type. | ;ulType: specifies the control type. | ||
; ptr: is a pointer to a structure the system control returns. | ;ptr: is a pointer to a structure the system control returns. | ||
ulType == 1 means getting the DevHelp pointer. It is called like this: | ulType == 1 means getting the DevHelp pointer. It is called like this: | ||
MFSH_SYSCTL(1, &DevHelp); | MFSH_SYSCTL(1, &DevHelp); | ||
==Returns== | ==Returns== | ||
If no error is detected, a zero error code is returned. Currently, if ulType <> 1, the following error is returned: | If no error is detected, a zero error code is returned. Currently, if ulType <> 1, the following error is returned: | ||
; ERROR_INVALID_PARAMETER: | ;ERROR_INVALID_PARAMETER:the supplied control type is invalid | ||
==Sample== | ==Sample== | ||
unsigned long ulType; | unsigned long ulType; | ||
void far * ptr; | void far * ptr; | ||
Line 21: | Line 22: | ||
int far pascal MFSH_SYSCTL(ulType, void far *ptr) | int far pascal MFSH_SYSCTL(ulType, void far *ptr) | ||
[[Category:IFS Interfaces]] | |||
[[Category:IFS]] |
Latest revision as of 21:36, 20 November 2019
Do additional system controls. Perform some actions, like getting the DevHelp entry point.
Syntax
int far pascal MFSH_SYSCTL(ulType, void far *ptr)
Parameters
- ulType
- specifies the control type.
- ptr
- is a pointer to a structure the system control returns.
ulType == 1 means getting the DevHelp pointer. It is called like this:
MFSH_SYSCTL(1, &DevHelp);
Returns
If no error is detected, a zero error code is returned. Currently, if ulType <> 1, the following error is returned:
- ERROR_INVALID_PARAMETER
- the supplied control type is invalid
Sample
unsigned long ulType; void far * ptr; int far pascal MFSH_SYSCTL(ulType, void far *ptr)