主题:会PB的都来看看啊,这怎么实现呢?
动态库里面有这样一个方法
HRESULT RIL_Initialize(
DWORD dwIndex, // @parm index of the RIL port to use (e.g., 1 for RIL1:)
RILRESULTCALLBACK pfnResult, // @parm function result callback
RILNOTIFYCALLBACK pfnNotify, // @parm notification callback
DWORD dwNotificationClasses, // @parm classes of notifications to be enabled for this client
DWORD dwParam, // @parm custom parameter passed to result and notififcation callbacks
HRIL* lphRil // @parm returned handle to RIL instance
);
现在我想用PB调用它,我在全局声明那里应该怎么写呢
FUNCTION any RIL_Initialize( )LIBRARY "rilgsm.dll"
HRESULT RIL_Initialize(
DWORD dwIndex, // @parm index of the RIL port to use (e.g., 1 for RIL1:)
RILRESULTCALLBACK pfnResult, // @parm function result callback
RILNOTIFYCALLBACK pfnNotify, // @parm notification callback
DWORD dwNotificationClasses, // @parm classes of notifications to be enabled for this client
DWORD dwParam, // @parm custom parameter passed to result and notififcation callbacks
HRIL* lphRil // @parm returned handle to RIL instance
);
现在我想用PB调用它,我在全局声明那里应该怎么写呢
FUNCTION any RIL_Initialize( )LIBRARY "rilgsm.dll"