Around and About .NET World

Il blog di Marco Minerva
posts - 1671, comments - 2232, trackbacks - 2135

My Links

News

Contattami su Live Messenger:


MCTS: Windows, Web, Distributed Applications & SQL Server

MCPD: Enterprise Applications

Tag Cloud

Archives

Post Categories

Links

giovedì 5 ottobre 2006

Eseguire un soft reset del Pocket PC

Le seguente righe di codice consentono di eseguire il soft reset di un Pocket PC su cui è in esecuzione Windows Mobile 5.0 (è necessario importare il namespace System.Runtime.InteropServices per la compilazione): 

Copy Code
private const int EWX_REBOOT = 2; [DllImport("aygshell.dll")] public static extern bool ExitWindowsEx(int uFlags, int dwReserved); //Esempio di utilizzo: ExitWindowsEx(EWX_REBOOT, 0);

By the way: per questo post ho utilizzato la versione 0.2 del plugin SyntaxColor4Writer, devo dire che è veramente ben fatto... Mi piace soprattutto il link Copy Code che inserisce in maniera automatica semplicemente attivando una checkbox.

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (5) | Filed Under [ .NET Compact Framework ]

Serializzare oggetti complessi e collezioni

Ormai sta diventando quasi un apputamento fisso, il mio giro su Code Project e la segnalazione degli articoli più interessanti . Oggi ne segnalo solo uno, che però penso sia molto utile:

A deep XmlSerializer, supporting complex classes, enumerations, structs, collections, and arrays

This article targets deep XML-serialization, supporting complex classes, enumerations, structs, collections, arrays, and some more.

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (0) |

Powered by:
Powered By Subtext Powered By ASP.NET