--- mstools/samples/pdc/pdc.h 2018/08/09 18:20:38 1.1.1.1 +++ mstools/samples/pdc/pdc.h 2018/08/09 18:21:29 1.1.1.2 @@ -246,7 +246,7 @@ typedef struct _ENUMERATE_DIRECTORY_STAT typedef VOID (*PWORKER_ROUTINE)( - IN struct _WORK_QUEUE_ITEM *WorkItem + // IN PWORK_QUEUE_ITEM WorkItem ); typedef struct _WORK_QUEUE { @@ -259,10 +259,10 @@ typedef struct _WORK_QUEUE { HANDLE WorkerThreads[ 1 ]; // Variable length array } WORK_QUEUE, *PWORK_QUEUE; - typedef struct _WORK_QUEUE_ITEM { LIST_ENTRY List; DWORD Reason; + PWORK_QUEUE WorkQueue; } WORK_QUEUE_ITEM, *PWORK_QUEUE_ITEM; #define WORK_INITIALIZE_ITEM 0 @@ -348,7 +348,6 @@ ProcessSearchFile( // Global variables // -PWORK_QUEUE WorkQueue; DWORD TlsIndex; INT NumberOfWorkerThreads; BOOL Verbose; @@ -362,12 +361,12 @@ DWORD SearchStringLength; DWORD SearchedFileCount; DWORD MatchedFileCount; DWORD MatchedLineCount; -DWORD OutstandingIOOperations; +LONG OutstandingIOOperations; HANDLE IoCompletedEvent; typedef int -(*PCOMPARE_ROUTINE)( +(_CRTAPI1 *PCOMPARE_ROUTINE)( IN const char *, IN const char *, IN size_t