Re: CeRapiInvoke in librapi2-0.13

2009-07-13 Thread David Richardson
Thanks for letting me contribute! On Fri, Jul 10, 2009 at 8:17 AM, Mark Ellis wrote: > On Tue, 2009-07-07 at 22:06 +0200, David Richardson wrote: > > Also this patch has a minor bug fix (wasn't actually responding with > > the number of bytes in the output, but just synce_tracing the value). > >

Re: CeRapiInvoke in librapi2-0.13

2009-07-10 Thread Mark Ellis
On Tue, 2009-07-07 at 22:06 +0200, David Richardson wrote: > Also this patch has a minor bug fix (wasn't actually responding with > the number of bytes in the output, but just synce_tracing the value). > Cool, I've now managed to disable the security on my device to test this, and have now commit

Re: CeRapiInvoke in librapi2-0.13

2009-07-07 Thread David Richardson
Also this patch has a minor bug fix (wasn't actually responding with the number of bytes in the output, but just synce_tracing the value). On Tue, Jul 7, 2009 at 12:53 PM, David Richardson wrote: > The first step is to get it detected by ActiveSync. If you're using a VM > like I am, you're unlik

Re: CeRapiInvoke in librapi2-0.13

2009-07-07 Thread David Richardson
The first step is to get it detected by ActiveSync. If you're using a VM like I am, you're unlikely to get RNDIS to connect, so disable advanced networking. Once it is detected fire up VS and Tools > Device Security Manager... > Connect to a device... Platform: Windows Mobile 5.0 Pocket PC SDK D

Re: CeRapiInvoke in librapi2-0.13

2009-07-07 Thread Mark Ellis
On Mon, 2009-06-29 at 23:02 +0200, David Richardson wrote: > I implemented reading of the output_size and output_buffer too. I > couldn't figure out how to actually run the CeRapiInvoke tests (my > automake experience is lacking) but I did create a separate executable > that does the same thing as

Re: CeRapiInvoke in librapi2-0.13

2009-06-29 Thread David Richardson
I implemented reading of the output_size and output_buffer too. I couldn't figure out how to actually run the CeRapiInvoke tests (my automake experience is lacking) but I did create a separate executable that does the same thing as those tests. It should pass test_ping_result and test_ping_buffer

Re: CeRapiInvoke in librapi2-0.13

2009-06-29 Thread David Richardson
On Mon, Jun 29, 2009 at 7:42 AM, Mark Ellis wrote: > On Mon, 2009-06-29 at 12:39 +0200, Mark Ellis wrote: > > On Fri, 2009-06-26 at 22:37 +0200, David Richardson wrote: > > > I called CeCreateFile("//test.txt", GENERIC_READ | GENERIC_WRITE, 0, > > > NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL)

Re: CeRapiInvoke in librapi2-0.13

2009-06-29 Thread David Eriksson
On Mon, 2009-06-29 at 15:42 +0100, Mark Ellis wrote: > Can't invoke on WM5+ because it's in 'RAPI Restricted Mode', anyone know > how to switch to 'Open Mode' ? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/wce51conRAPIRestrictedModeSecurity.asp Mvh, David Er

Re: CeRapiInvoke in librapi2-0.13

2009-06-29 Thread Mark Ellis
On Mon, 2009-06-29 at 12:39 +0200, Mark Ellis wrote: > On Fri, 2009-06-26 at 22:37 +0200, David Richardson wrote: > > I called CeCreateFile("//test.txt", GENERIC_READ | GENERIC_WRITE, 0, > > NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); and watched that > > connection on wireshark so I had some

Re: CeRapiInvoke in librapi2-0.13

2009-06-29 Thread Mark Ellis
On Fri, 2009-06-26 at 22:37 +0200, David Richardson wrote: > I called CeCreateFile("//test.txt", GENERIC_READ | GENERIC_WRITE, 0, > NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); and watched that > connection on wireshark so I had some basis for comparison. > > CeCreateFile has a command code

Re: CeRapiInvoke in librapi2-0.13

2009-06-26 Thread David Richardson
I called CeCreateFile("//test.txt", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); and watched that connection on wireshark so I had some basis for comparison. CeCreateFile has a command code of 0x16 and using this knowledge I believe the command code for CeRapiI

Re: CeRapiInvoke in librapi2-0.13

2009-06-26 Thread David Richardson
I'm calling hr = CeRapiInvoke("\\invokeme.dll", "PingBuffer", PING_BUFFER_SIZE, buffer, &output_size, &output_buffer, NULL, 0); with PING_BUFFER_SIZE = 10 I've attached the wireshark pcap. Ignore everything before 12 seconds. I called the identical invoke 3 times on the device. buffer should b

Re: CeRapiInvoke in librapi2-0.13

2009-06-25 Thread Mark Ellis
On Thu, 2009-06-25 at 00:39 +0200, David Richardson wrote: > > > On Wed, Jun 24, 2009 at 12:35 AM, Mark Ellis > wrote: > On Mon, 2009-06-22 at 22:10 +0200, David Eriksson wrote: > > On Wed, 2009-06-17 at 18:07 -0700, Captain Fourier wrote: > > > Hey, > > > >

Re: CeRapiInvoke in librapi2-0.13

2009-06-25 Thread Captain Fourier
Yes, I was referring to the dll invokeme.dll. I have also tried making my own in Visual Studio. On 6/24/09, David Richardson wrote: > On Wed, Jun 24, 2009 at 12:35 AM, Mark Ellis wrote: > >> On Mon, 2009-06-22 at 22:10 +0200, David Eriksson wrote: >> > On Wed, 2009-06-17 at 18:07 -0700, Captain

Re: CeRapiInvoke in librapi2-0.13

2009-06-24 Thread David Richardson
On Wed, Jun 24, 2009 at 12:35 AM, Mark Ellis wrote: > On Mon, 2009-06-22 at 22:10 +0200, David Eriksson wrote: > > On Wed, 2009-06-17 at 18:07 -0700, Captain Fourier wrote: > > > Hey, > > > > > > I have been trying to get CeRapiInvoke to work. Just using the unit > > > tests in the release. All I

Re: CeRapiInvoke in librapi2-0.13

2009-06-24 Thread David Eriksson
> On Mon, 2009-06-22 at 22:10 +0200, David Eriksson wrote: >> On Wed, 2009-06-17 at 18:07 -0700, Captain Fourier wrote: >> > Hey, >> > >> > I have been trying to get CeRapiInvoke to work. Just using the unit >> > tests in the release. All I get is -2147467263 as a return result. >> >> 0x80004001 me

Re: CeRapiInvoke in librapi2-0.13

2009-06-24 Thread Mark Ellis
On Mon, 2009-06-22 at 22:10 +0200, David Eriksson wrote: > On Wed, 2009-06-17 at 18:07 -0700, Captain Fourier wrote: > > Hey, > > > > I have been trying to get CeRapiInvoke to work. Just using the unit > > tests in the release. All I get is -2147467263 as a return result. > > 0x80004001 means "no

Re: CeRapiInvoke in librapi2-0.13

2009-06-22 Thread David Eriksson
On Wed, 2009-06-17 at 18:07 -0700, Captain Fourier wrote: > Hey, > > I have been trying to get CeRapiInvoke to work. Just using the unit > tests in the release. All I get is -2147467263 as a return result. 0x80004001 means "not implemented" > Is CeRapiInvoke implemented? Is it still only Stream