Windows Embedded Cookbook
Valter Minute's blog
July 2009 Entries
Pasta acciughe e pan grattato
This is a simple but tasty recipe, made with simple and "poor" ingredients.
Ingredients (for four people):
- 160-200g of pasta (spaghetti, bucatini or linguine)
- 8 tablespoons of grated bread
- 8 fillets of anchovies
- 4 tablespoons olive oil
- some parsley
Cook the pasta in boiling salted water as described in the other pasta recipes.
While the pasta is cooking put the olive oil in a pan and heat it.
Add the anchovies and let them cook for a while. Then, using a wood spoon, crush them until they disappear inside the oil.
Reduce the heat a bit and add the bread. If the mix of oil and bread is getting too solid, add a couple of tablespoons of the pasta's water.
Drain the pot and put pasta inside the pan, mixing it well with the bread and oil sauce and with some finely chopped parsley.
Share This Post:
Friday, July 17, 2009 6:59 AM
Some help about AuthHelp
Some of the servers provided with Windows CE implement user authentication and can grant different level of access to different kinds of users or no access at all to unauthorized people.
You may use the same mechanism to grant access to your device features from your main application or from your own custom remote interface or WEB-based UI.
First of all you should add the NTLM authentication service to your OS image.
This will allow you to access the NTLM API and the
Using this function you can create a new user and set his own password.
Users may be added to groups, allowing or preventing them to access some features.
The NTLM API is documented inside the Platform Builder help system.
Don't forget that your platform must be able to save the registry in a permanent way (hive-based registry on a mass-storage device, usually) to keep the user that you have created even after a cold boot.
Using the NTLM API you can create users and groups that can be associated to virtual directories for the FTP server, for example, or allowed to access the files and directory that you share using the SMB service.
But how can you use that same configuration inside your own application or server?
You need to use AuthHelp API. The functions of this helper API are declared inside authhlp.h and implemented in authhlp.lib, you can find those files under the PUBLIC\COMMON\SDK\INC and LIB subfolders of your Windows CE source root.
If you find the header file you have also found most of the documentation about this API...
Under the \PUBLIC\SERVERS\SDK\SAMPLES directory you will find the implementation of telnet, FTP, HTTP and other Windows CE servers, those servers are also a good sample of how you may use the AuthHelp API inside your own software.
The first function you'll have to call is
. You can call it when your application or service starts. A call to AuthHelpUnload will release all the resources used to manage user authentication (it's a good idea to call it only when you are sure that no more user authentication operations will be performed).
You'll have to use the
function to check if the username and password that your user entered are valid on your device.
There are two other versions of this function:
that accept username/password pairs in ASCII and
that accepts unicode strings.
Using those functions inside your code you can use a single users/groups database to validate access to different parts of your system. This will avoid the need of keeping multiple copies of the username and password authentication information on your device or (worse) the need to configure different user accounts to access your system using different user interfaces.
Other AUTHHLP APIs handle ACLs. An ACL is a list of users and/or groups that are allowed or not allowed to access some specific resource and it's written using a specific syntax described here:
FTP Server User List
API (also with A and W "variants" for ASCII or UNICODE) allows you to check if a specific user is included in an ACL. This will allow you to configure access to some application features using ACLs in the same way you can use them to allow/deny access to specific FTP directories.
Share This Post:
Friday, July 17, 2009 6:45 AM
December 2014 (1)
August 2014 (1)
July 2014 (1)
October 2013 (1)
July 2013 (1)
January 2013 (2)
December 2012 (2)
September 2012 (1)
June 2012 (2)
May 2012 (1)
December 2011 (2)
November 2011 (3)
September 2011 (2)
August 2011 (1)
June 2011 (1)
March 2011 (1)
February 2011 (1)
January 2011 (1)
December 2010 (2)
November 2010 (1)
August 2010 (2)
July 2010 (2)
June 2010 (2)
May 2010 (5)
April 2010 (1)
March 2010 (7)
February 2010 (3)
January 2010 (1)
November 2009 (3)
October 2009 (3)
September 2009 (4)
July 2009 (2)
June 2009 (1)
May 2009 (2)
April 2009 (1)
March 2009 (3)
February 2009 (3)
January 2009 (5)
Gately does the Drive (www.mydrivefm.com) - 2007-01-15
Softrock RXTX+Xtall v6.3
Toradex Developer's Website
Toradex Main Website
"Windows Embedded Compact 7"
"Windows Embedded Compact 7" "Silverlight for Windows Embedded"
Silverlight for Windows Embedded
Windows Embedded Compact 7
Copyright © 2005 Valter Minute
This work is licensed under a
Creative Commons License