equal
deleted
inserted
replaced
246 HANDLE_FLAG_INHERIT, |
246 HANDLE_FLAG_INHERIT, |
247 inherit[i] ? HANDLE_FLAG_INHERIT : 0); |
247 inherit[i] ? HANDLE_FLAG_INHERIT : 0); |
248 } |
248 } |
249 } |
249 } |
250 |
250 |
|
251 /* |
|
252 * Class: java_lang_ProcessImpl |
|
253 * Method: getProcessId0 |
|
254 * Signature: (J)I |
|
255 */ |
|
256 JNIEXPORT jint JNICALL Java_java_lang_ProcessImpl_getProcessId0 |
|
257 (JNIEnv *env, jclass clazz, jlong handle) { |
|
258 DWORD pid = GetProcessId((HANDLE) jlong_to_ptr(handle)); |
|
259 return (jint)pid; |
|
260 } |
|
261 |
251 /* Please, read about the MS inheritance problem |
262 /* Please, read about the MS inheritance problem |
252 http://support.microsoft.com/kb/315939 |
263 http://support.microsoft.com/kb/315939 |
253 and critical section/synchronized block solution. */ |
264 and critical section/synchronized block solution. */ |
254 static jlong processCreate( |
265 static jlong processCreate( |
255 JNIEnv *env, |
266 JNIEnv *env, |