Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Module for SetPriorityClass?

keefer
Beginner
1,007 Views
Hi
Under CVF Jugoslav told me what module to use to define the structure, type etc. to use the Windows SetPriorityClass in Fortran. I can no longer find a Fortran version for IVF8.1. Can somone help?
Thanks,
Keith
0 Kudos
5 Replies
Steven_L_Intel1
Employee
1,007 Views
Same place - KERNEL32.
You can find the module to use by looking up the routine in the Microsoft SDK documentation and seeing which library it is in - kernel32.lib in this case. The name of the library is the name of the module.
0 Kudos
keefer
Beginner
1,007 Views
Steve,
Believe it or not, I did that. The previous Fortran module declared the type of "SetPriorityClass" and probably set up a structure. The one I found in the SDK seemed to be for C++ only (Setpriorityclass.h, etc.). Will this work in IVF8.1? I haven't yet gotten it to do so, but can also try harder. Do I need to tell IVF that I'm calling a C++ function and change the character string parameters to C format as well?
Regards,
Keith
0 Kudos
keefer
Beginner
1,007 Views
Steve,
Whoops (not enough coffe yet). I haven't declared Kernal32 as a module. I'll try that first.
Regards,
Keith
0 Kudos
keefer
Beginner
1,007 Views
Steve,
Both the coffee and the USE kernel32 worked.
Thanks.
Regards,
Keith
0 Kudos
Steven_L_Intel1
Employee
1,007 Views
Coffee GOOD! :-)
0 Kudos
Reply