Changeset 120 for trunk/src


Ignore:
Timestamp:
Jun 26, 2008, 6:08:08 PM (17 years ago)
Author:
lpino
Message:

(swt.c) - Implemented WinFindAtom, WinQueryClassName and WinQuerySystemAtomTable calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/library/swt.c

    r117 r120  
    14371437    return (jint)WinQueryActiveWindow((HWND)hwndParent);
    14381438}
    1439 JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_pm_OS_WinGetMsg
     1439JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_pm_OS_WinGetMsg
    14401440        (JNIEnv *env, jclass that, jint hab, jobject qmsg, jint hwndFilter, jint ulFirst, jint ulLast)
    14411441{
     
    14491449
    14501450    if (qmsg) setQMSGFields(env, qmsg, c_pqmsg, &PGLOB(QMSGFc));
     1451
     1452    return rc;
     1453}
     1454JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_pm_OS_WinQuerySystemAtomTable
     1455        (JNIEnv *env, jclass that)
     1456{
     1457    DEBUG_CALL("WinQuerySystemAtomTable\n")
     1458
     1459    return (jint)WinQuerySystemAtomTable();
     1460}
     1461JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_pm_OS_WinFindAtom
     1462        (JNIEnv *env, jclass that, jint hatomtblAtomTbl, jobject pszTitle)
     1463{
     1464    DECL_GLOB(pGlob)
     1465    PSZ c_pszTitle = NULL;
     1466    jint rc;
     1467
     1468    DEBUG_CALL("WinFindAtom\n")
     1469
     1470    if (pszTitle) c_pszTitle = getPSZBytes(env, pszTitle);
     1471
     1472    rc = (jint)WinFindAtom((HATOMTBL)hatomtblAtomTbl, c_pszTitle);
     1473
     1474    if (pszTitle) releasePSZBytes(env, pszTitle, c_pszTitle);
     1475
     1476    return rc;
     1477}
     1478JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_pm_OS_WinQueryClassName
     1479        (JNIEnv *env, jclass that, jint hwnd, jint lLength, jobject pszBuffer)
     1480{
     1481    DECL_GLOB(pGlob)
     1482    PSZ c_pszBuffer = NULL;
     1483    jint rc;
     1484
     1485    DEBUG_CALL("WinQueryClassName\n")
     1486
     1487    if (pszBuffer) c_pszBuffer = getPSZBytes(env, pszBuffer);
     1488
     1489    rc = (jint)WinQueryClassName((HWND)hwnd, lLength, c_pszBuffer);
     1490
     1491    if (pszBuffer) releasePSZBytes(env, pszBuffer, c_pszBuffer);
    14511492
    14521493    return rc;
Note: See TracChangeset for help on using the changeset viewer.