Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>With the source code of Windows CE 6 you get the <a href="http://msdn.microsoft.com/en-us/library/aa911532.aspx" rel="nofollow noreferrer"><code>BootPart library</code></a> source code. The location for the source is <code>WINCE600\PUBLIC\COMMON\OAK\DRIVERS\ETHDBG\BOOTPART</code>.</p> <p>Inside Bootpart.cpp you can find the function <code>BP_OpenPartition</code> that opens/creates a new partition. It basically adds information to the MBR.</p> <hr> <p>The above solution is a bit low level. Here is a way to do it through Win32 API (taken from <a href="http://groups.google.com/group/microsoft.public.windowsce.embedded/browse_thread/thread/39d5f9d596848d44/963a6444f7b78c30?hl=en&amp;ie=UTF-8&amp;q=failed+to+create+partition+group:microsoft.public.windowsce.*#963a6444f7b78c30" rel="nofollow noreferrer">here</a>): </p> <ul> <li>Call <a href="http://msdn.microsoft.com/en-us/library/aa912079.aspx" rel="nofollow noreferrer">OpenStore</a> to get a handle to the store</li> <li>Dismount the store using <a href="http://msdn.microsoft.com/en-us/library/aa914718.aspx" rel="nofollow noreferrer">DismountStore</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/aa911931.aspx" rel="nofollow noreferrer">FindFirstPartition</a>/FindNextPartition will iterate over existing partitions and <a href="http://msdn.microsoft.com/en-us/library/aa917058.aspx" rel="nofollow noreferrer">DeletePartition</a> will delete those that can be deleted.</li> <li><a href="http://msdn.microsoft.com/en-us/library/aa912273.aspx" rel="nofollow noreferrer">GetStoreInfo</a> will get you the number of sectors available for creating a new partition (<code>(STOREINFO.snBiggestPartCreatable</code>)</li> <li>Use <a href="http://msdn.microsoft.com/en-us/library/aa912236.aspx" rel="nofollow noreferrer">CreatePartition</a> to create the partition.</li> </ul> <p>All the pointers to the functions and more information about the storage manager can be found here: <a href="http://msdn.microsoft.com/en-us/library/aa914929.aspx" rel="nofollow noreferrer">Storage Manager Reference</a></p> <hr> <p>You can see that the links I provided indicate that the functions work on both Windows Mobile 6 and Windows CE 6. Non of the functions are new functionality so they should also work with Windows CE 5.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload