CreateMailslot does not function in an XP Embedded SP2 FP2007 image

  • Thread starter Thread starter Alexander
  • Start date Start date
A

Alexander

Hello,
If I call CreateMailslot in a XP Embedded image built with XP Embedded
SP2 FP2007, I always get the error with code 3, meaning "The system
cannot find the path specified". My path is simply "\\\\.\\mailslot\
\TEST_PORT" (in C string syntax).

The exact call is

CreateMailslot(TEST_PORT_NAME, /* name of the port */
0, /*
no maximum message size */
MAILSLOT_WAIT_FOREVER, /* no time-out for
operations */
(LPSECURITY_ATTRIBUTES) NULL))

where TEST_PORT_NAME is defined as "\\\\.\\mailslot\\TEST_PORT"

I do not get this error when working with an image built with XP
Embedded SP1.

Could it be that the component necessary to work with Mailslots has
been optimized away by default and had to be enabled by adding a
specific component as it is the case for the Explorer menu bar which
only exists in FP2007 images if the component Primitive:Browselc is
included in the SLX file.

Any help would be greatly appreciated.

Alexander
 
Back
Top