Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

int kldrDyldModCreateNative ( KUPTR  hNativeModule  ) 

Creates a module for a native module.

Returns:
0 on success and *ppMod pointing to the new instance. On failure a non-zero kLdr status code is returned.
Parameters:
hNativeModule The native handle.
ppMod Where to put the pointer to the new module on success.
Remarks:
This function ain't finalized yet.

Definition at line 202 of file kLdrDyldMod.c.

References NULL.

{
#if 0
    /*
     * Check if this module is already loaded by the native OS loader.
     */
    rc = kld
    {
#if K_OS == K_OS_OS2
    HMODULE hmod = NULLHANDLE;
    APIRET rc = DosQueryModuleHandle(kRdrName(pRdr), &hmod);
    if (!rc)

#elif K_OS == K_OS_WINDOWS
    HMODULE hmod = NULL;
    if (GetModuleHandle(kRdrName(pRdr))

#else
# error "Port me"
#endif
    }
#endif
    return -1;
}


Generated by  Doxygen 1.6.0   Back to index