您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ DosFreeModule函数代码示例

51自学网 2021-06-01 20:29:33
  C++
这篇教程C++ DosFreeModule函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中DosFreeModule函数的典型用法代码示例。如果您正苦于以下问题:C++ DosFreeModule函数的具体用法?C++ DosFreeModule怎么用?C++ DosFreeModule使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了DosFreeModule函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: VManInit

static BOOL VManInit(SDL_PrivateVideoData *pPVData){  CHAR			achBuf[256];  ULONG			ulRC;  INITPROCOUT		sInitProcOut;  ulRC = DosLoadModule( achBuf, sizeof(achBuf), "VMAN", &hmodVMan );  if ( ulRC != NO_ERROR )  {    debug( "Could not load VMAN.DLL, rc = %u : %s", ulRC, achBuf );    return FALSE;  }  ulRC = DosQueryProcAddr( hmodVMan, 0L, "VMIEntry", (PFN *)&pfnVMIEntry );  if ( ulRC != NO_ERROR )  {    debug( "Could not query address of pfnVMIEntry function of VMAN.DLL, "           "rc = %u", ulRC );    DosFreeModule( hmodVMan );    hmodVMan = NULLHANDLE;    return FALSE;  }  sInitProcOut.ulLength = sizeof(sInitProcOut);  ulRC = pfnVMIEntry( 0, VMI_CMD_INITPROC, NULL, &sInitProcOut );  if ( ulRC != RC_SUCCESS )  {    debug( "Could not initialize VMAN for this process" );    DosFreeModule( hmodVMan );    hmodVMan = NULLHANDLE;    return FALSE;  }  if ( pPVData == NULL )  {    // It only check VMan availability...    pfnVMIEntry( 0, VMI_CMD_TERMPROC, NULL, NULL );    return TRUE;  }  ulVRAMAddress = sInitProcOut.ulVRAMVirt;  // Set routine that run when the current process ends, before PM-related  // internal procedure.  ulRC = DosExitList( EXLST_ADD                     | 0x00009900, // Before Presentation Manager (0xA0 - 0xA8)                     _AtExit );  return TRUE;}
开发者ID:OS2World,项目名称:LIB-SDL-2014,代码行数:51,


示例2: DrvMountDrivesThread

void        DrvMountDrivesThread( void * hev){    ULONG       rc;    HMODULE     hmod = 0;    pRediscover_PRMs    pfn = 0;    char *      pErr = 0;    char        szErr[16];    rc = DosLoadModule( szErr, sizeof(szErr), "LVM", &hmod);    if (rc)        pErr = "DosLoadModule";    else {        rc = DosQueryProcAddr( hmod, 0, "Rediscover_PRMs", (PFN*)&pfn);        if (rc)            pErr = "DosQueryProcAddr";        else {            pfn( &rc);            if (rc)                pErr = "Rediscover_PRMs";        }        rc = DosFreeModule( hmod);        if (rc && !pErr)            pErr = "DosFreeModule";    }    if (pErr)        printf( "DrvMountDrivesThread - %s - rc= %lx/n", pErr, rc);    rc = DosPostEventSem( (HEV)hev);    if (rc)        printf( "DrvMountDrivesThread - DosPostEventSem - rc= %lx/n", rc);    return;}
开发者ID:OS2World,项目名称:APP-GRAPHICS-Cameraderie,代码行数:35,


示例3: RemovePlugin

// RemovePlugin(hwnd, pTBData, dllName, appName, bActive)//    hwnd     --> Handle of the calling window//    pTBData  --> Pointer to the titlebar's CandyBarZ data structure//    index    --> index of the plugin to be removedBOOL RemovePlugin( /*HWND hwnd, */ CBZDATA *pCBZData, int index){    //remove the plugin from the given index, and move all plugins below it up 1    int i, count;    if ((index >= pCBZData->cbPlugins) || (index < 0))        return (FALSE);    count = pCBZData->cbPlugins;    //free resources of removed plugin    if (pCBZData->Plugins[index].hModDll != NULLHANDLE)        DosFreeModule(pCBZData->Plugins[index].hModDll);//should call the CBZDestroy Function here instead!    if (pCBZData->Plugins[index].pData != NULL)        DosFreeMem(pCBZData->Plugins[index].pData);    //move the lower plugins up 1    for (i = index; i < count; i++)    {        SwapPlugins(pCBZData, i, i + 1);    }    //update the plugin count    pCBZData->cbPlugins--;    return (TRUE);}
开发者ID:OS2World,项目名称:UTIL-WPS-CandyBarz,代码行数:31,


示例4: ReloadResources

BOOL Settings :: ReloadResources (PSZ psz){    if (g_hmod)        DosFreeModule(g_hmod);    APIRET  rc;    if ((rc = DosLoadModule(PSZ(NULL), 0, psz, &g_hmod)))    {        DisplayError("ERROR", "Could not (re)load Gotcha! resource module "                     "'%s' (DosLoadModule() return code %d). First make sure the DLL is in the LIBPATH. If this is the case, try to delete "                     "GOTCHA.INI and start Gotcha! again. If it does not work "                     "then, contact the author ([email
C++ DosGetInfoBlocks函数代码示例
C++ DosFreeMem函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。