parameters to CeRapiInvoke() in c#

  • Thread starter Thread starter Supriya
  • Start date Start date
S

Supriya

Hi all,
i want to call RegCopyFile( string strFileName) using
CeRapiInvoke ( ).How to pass fileName.I am calling

int iResult = CeRapiInvoke( "\\Windows\\Some.dll", "RegCopyFile", i,ref i,
ref i, ref bt, 0, 0 );

where

byte bt =1;

uint i = 0;

It is returning some negative result.

Thanks

supriya
 
From the OpenNETCF.Desktop.Communication[1] library:

[DllImport("rapi.dll", CharSet=CharSet.Unicode, SetLastError=true)]
internal extern static int CeRapiInvoke(string pDllPath, string
pFunctionName, uint cbInput, IntPtr pInput, out uint pcbOutput, out IntPtr
ppOutput, IntPtr ppIRAPIStream, uint dwReserved);


[1] www.opennetcf.org/communication
 
Back
Top