高手赐教!
CeRapiInitEx()问题,用该函数总连不上,用CeRapiInit函数又可以,代码如下:
ri: TRapiInit;
hRes: HRESULT;
dwRet: HRESULT;
begin
Result := 0;
i_PCHandle:=0;
//Init
//CeRapiInit;
ri.cbSize:=sizeof(ri);
hRes := CeRapiInitEx(ri);
if hRes=S_OK then
begin
dwRet:=WaitForSingleObject(ri.heRapiInit,5000);
if ((dwRet<>WAIT_OBJECT_0) OR (ri.hrRapiInit<>S_OK))then
HRes一直返回的是65535,请高手指点