GetUserLookupTable example for C++ 5.0 and later

   ILEADRasterProcess *pRasterProc=NULL; 
   CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc); 

   long lPointCount; 
   pRasterProc->PutUserLUTCurveSize(3); 
   pRasterProc->PutUserLUTCurveX(0, 0); 
   pRasterProc->PutUserLUTCurveY(0, 0); 
   pRasterProc->PutUserLUTCurveX(1, 128); 
   pRasterProc->PutUserLUTCurveY(1, 150); 
   pRasterProc->PutUserLUTCurveX(2, 255); 
   pRasterProc->PutUserLUTCurveY(2, 255); 
   pRasterProc->GetUserLookupTable();
  lPointCount =  pRasterProc->GetUserLookupTablePointCount();
   pRasterProc->RemapIntensity (m_RasterView1.GetRaster (), CHANNEL_MASTER); 
   CString strMsg; 
   strMsg.Format(TEXT("%ld Points were modified"), lPointCount); 
   AfxMessageBox(strMsg); 

   pRasterProc->Release();