To call the Virtual Driver Help interfaces or communicate with physical device drivers, you must use 32-bit _Pascal or _Far32 _Pascal calling conventions. These calling conventions are not supported for C++ programs.
Within a virtual device driver, you can use the _Optlink convention in most cases. Private interfaces between physical and virtual device drivers can use any calling convention provided both device drivers support it.
The _Far32 _Pascal calling convention is only available for code running at ring 0. It allows you to make calls between code segments with different selectors. It also allows your virtual device drivers to communicate with physical device drivers.
You can specify the calling convention using either the _Pascal or _Far32 _Pascal keywords.
![]()
Creating Code to Run at Ring 0
Developing Virtual Device Drivers
![]()
Pascal and _Far32_Pascal Calling Conventions
Keywords in C and C++
Using _Far32 _Pascal Function Pointers
