2 * FILE : reactos/apps/shm/shmsrv.c
11 int main(int argc
, char* argv
[])
16 printf("Shm test server\n");
18 Section
= CreateFileMappingW (
28 printf("Failed to create section (err=%d)", GetLastError());
32 printf("Mapping view of section\n");
33 BaseAddress
= MapViewOfFile(Section
,
38 printf("BaseAddress %x\n", (UINT
) BaseAddress
);
39 if (BaseAddress
== NULL
)
41 printf("Failed to map section\n");
44 printf("Copying to section\n");
45 printf("Copying %s\n", GetCommandLineA());
46 strcpy(BaseAddress
, GetCommandLineA());