How to get IPAQ's serial number in .NET CF ?

F

Freestyler

Thx Peter,
exuse my lame question, but how to use it ?. I've added a reference to that
OpenNETCF.WinAPI.dll, and still CreateProcess is not available.

Regards,
Fred
 
P

Peter Foot [MVP]

CreateProcess is a static member of the Code class within the library. e.g.

C#
OpenNETCF.WinAPI.Core.CreateProcess("\\windows\\pword.exe", null);

VB
OpenNETCF.WinAPI.Core.CreateProcess("\windows\pword.exe", Nothing)

Peter

--
Peter Foot
Windows Embedded MVP

In The Hand
http://www.inthehand.com
 
P

Peter Foot [MVP]

The native API function does indeed take a lot of additional arguments (most
of which are passed as nulls on Windows CE). I was suggesting you download
the OpenNETCF.WinAPI library.
http://www.opennetcf.org/winapi.asp
If you download the binary of this you will get a dll which you can add a
reference to in your project - then call its functions directly. Use the Add
Reference dialog, click the browse button then locate where you placed the
extracted dll. It will display a message about this not necessarily being
supported on the platform but you can ignore this.

The CreateProcess implementation in the WinAPI library takes care of a lot
of the donkey work behind the scenes, so you only need to pass the
executable name and command line arguments if any.

Peter

--
Peter Foot
Windows Embedded MVP

In The Hand
http://www.inthehand.com
 
F

Freestyler

Hi Peter,
I've already done exactly as you advised. The proof is that i can see
OpenNETCF.WinAPI.dll in my programs directory on PocketPC. But still "
'CreateProcess' does not exist in the class or namespace " error is
produced. The only CreateProcess method i've found is in
OpenNETCF.WinAPI.Core, but it takes 2 arguments.

Whats wrong?
Regs
Fred
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top