I am trying to make a system call, CreateProcess through JNI code base running on JAVA SDK. Will this work or do I have to use some other C call? The original program was written on Visual Studio, and now we are partly migrating to JAVA. I was using a WinAPI, CreateProcessW which internally called CreateProcess. And this CreateProcess had no definition, so am assuming it to be a system call. Somebody please help. Thank you.
P.S: I have to use only C code at this stage.
CreateProcess is a Windows API.
In the SDK headers, it's defined as CreateProcessA
or CreateProcessW
.
WinBase.h
excerpt:
#ifdef UNICODE
#define CreateProcess CreateProcessW
#else
#define CreateProcess CreateProcessA
#endif // !UNICODE
You should be able to call CreateProcess
from your JNI Dll written in C.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments