diff --git a/reactos/apps/utils/pice/loader/terminal.c b/reactos/apps/utils/pice/loader/terminal.c index c887b13ac42..03a33609df3 100644 --- a/reactos/apps/utils/pice/loader/terminal.c +++ b/reactos/apps/utils/pice/loader/terminal.c @@ -133,7 +133,7 @@ PSERIAL_PACKET ReadPacket(void) //printf("out of memory!\n"); return NULL; } - memcpy(p,&header,sizeof(SERIAL_PACKET_HEADER)); + PICE_memcpy(p,&header,sizeof(SERIAL_PACKET_HEADER)); sprintf(temp,"size %X chksum %x\n",header.packet_size,header.packet_chksum); //printf(temp); diff --git a/reactos/apps/utils/pice/module/pice.rc b/reactos/apps/utils/pice/module/pice.rc new file mode 100644 index 00000000000..f6d88ebc744 --- /dev/null +++ b/reactos/apps/utils/pice/module/pice.rc @@ -0,0 +1,39 @@ + +#include +#include + +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +VS_VERSION_INFO VERSIONINFO + FILEVERSION RES_UINT_FV_MAJOR,RES_UINT_FV_MINOR,RES_UINT_FV_REVISION,RES_UINT_FV_BUILD + PRODUCTVERSION RES_UINT_PV_MAJOR,RES_UINT_PV_MINOR,RES_UINT_PV_REVISION,RES_UINT_PV_BUILD + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", RES_STR_COMPANY_NAME + VALUE "FileDescription", "PICE Debugger\0" + VALUE "FileVersion", "0.0.1\0" + VALUE "InternalName", "pice\0" + VALUE "LegalCopyright", RES_STR_LEGAL_COPYRIGHT + VALUE "OriginalFilename", "pice.sys\0" + VALUE "ProductName", RES_STR_PRODUCT_NAME + VALUE "ProductVersion", RES_STR_PRODUCT_VERSION + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + diff --git a/reactos/apps/utils/pice/shared/shared.h b/reactos/apps/utils/pice/shared/shared.h index ceda85df314..8b0640f32b2 100644 --- a/reactos/apps/utils/pice/shared/shared.h +++ b/reactos/apps/utils/pice/shared/shared.h @@ -18,26 +18,33 @@ Environment: Author: Klaus P. Gerlicher + + reactos port by: + Eugene Ingerman Revision History: 13-Nov-1999: created 15-Nov-2000: general cleanup of source files + + 10/20/2001: porting to reactos begins Copyright notice: This file may be distributed under the terms of the GNU Public License. --*/ -#ifdef LINUX -#define PICE_IOCTL_MAGIC 'p' +#include -#define PICE_IOCTL_LOAD _IO(PICE_IOCTL_MAGIC,0) -#define PICE_IOCTL_UNLOAD _IO(PICE_IOCTL_MAGIC,1) -#define PICE_IOCTL_RELOAD _IO(PICE_IOCTL_MAGIC,2) -#define PICE_IOCTL_BREAK _IO(PICE_IOCTL_MAGIC,3) -#define PICE_IOCTL_STATUS _IO(PICE_IOCTL_MAGIC,4) +// define custom device type +#define PICE_DEVICE_DEBUGGER 64787 + +#define PICE_IOCTL_LOAD CTL_CODE(PICE_DEVICE_DEBUGGER, 2049, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define PICE_IOCTL_UNLOAD CTL_CODE(PICE_DEVICE_DEBUGGER, 2050, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define PICE_IOCTL_RELOAD CTL_CODE(PICE_DEVICE_DEBUGGER, 2051, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define PICE_IOCTL_BREAK CTL_CODE(PICE_DEVICE_DEBUGGER, 2052, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define PICE_IOCTL_STATUS CTL_CODE(PICE_DEVICE_DEBUGGER, 2053, METHOD_BUFFERED, FILE_ANY_ACCESS) typedef struct _DEBUGGER_STATUS_BLOCK @@ -79,7 +86,10 @@ typedef struct _PICE_SYMBOLFILE_SOURCE char filename[256]; ULONG ulOffsetToNext; }PICE_SYMBOLFILE_SOURCE; -#endif // LINUX + + + + /////////////////////////////////////////////////////////////////////////////////// // serial stuff @@ -174,4 +184,4 @@ typedef struct _SERIAL_DATA_PACKET_POLL /////////////////////////////////////////////////////////////////////////////////// -// EOF \ No newline at end of file +// EOF