SMDLL: helper to use the SM
[reactos.git] / reactos / lib / smdll / testapi.c
1 /* $Id$ */
2 #define NTOS_MODE_USER
3 #include <ntos.h>
4 #include <sm/api.h>
5
6 VOID STDCALL SmPrintPortMessage (PSM_PORT_MESSAGE SmMessage)
7 {
8 DbgPrint ("SM_PORT_MESSAGE %08lx:\n", (ULONG) SmMessage);
9 DbgPrint (" Header:\n");
10 DbgPrint (" MessageType = %u\n", SmMessage->Header.MessageType);
11 DbgPrint (" DataSize = %d\n", SmMessage->Header.DataSize);
12 DbgPrint (" MessageSize = %d\n", SmMessage->Header.MessageSize);
13 DbgPrint (" ApiIndex = %ld\n", SmMessage->ApiIndex);
14 DbgPrint (" Status = %08lx\n", SmMessage->Status);
15 DbgPrint (" ExecPgm:\n");
16 DbgPrint (" NameLength = %ld\n", SmMessage->ExecPgm.NameLength);
17 DbgPrint (" Name = %ls\n", (LPWSTR) & SmMessage->ExecPgm.Name);
18 }
19 /* EOF */
20