www.pudn.com > rtp11.rar > rtpdll.c


/* 
 
NOTICE: 
This document contains information that is proprietary to RADVISION LTD.. 
No part of this publication may be reproduced in any form whatsoever without 
written prior approval by RADVISION LTD.. 
 
RADVISION LTD. reserves the right to revise this publication and make changes 
without obligation to notify any person of such revisions or changes. 
 
*/ 
#pragma warning (push,3) 
#define  STRICT 
#include  
#pragma warning (pop) 
 
#include  
#include  
#include  
#include  
 
static HINSTANCE hinst; 
HINSTANCE getHInst(void) 
{ 
    return hinst; 
} 
 
BOOL WINAPI DllMain( 
    IN HINSTANCE hinstDLL,  /* handle to DLL module */ 
    IN DWORD fdwReason,     /* reason for calling function */ 
    IN LPVOID lpvReserved   /* reserved */ 
   ) 
{ 
    if (lpvReserved); 
 
    switch(fdwReason) 
    { 
    case DLL_PROCESS_ATTACH: 
        hinst=hinstDLL; 
        break; 
    case DLL_PROCESS_DETACH: 
        break; 
    } 
    return TRUE; 
} 
 
 
RVAPI void RVCALLCONV __ForceLink__(void) 
{ 
    rtpInit(); 
    rtcpInit(); 
    rtpPCMUGetHeaderLength(); 
}