SHADOW files

Dears, good afternoon,

Do I have a code for reading of files SHADOW of the windows, however when compiling mistake it is returning, can you help me?

define SHD_SIGNATURE_67 $00004967 //Win2000/XP
typedef struct _SHADOW_FILE_HEADER_67 {
DWORD dwSignature; //SHD_SIGNATURE_67
WORD wStatus;
WORD wUnknown1;
DWORD dwJobID;
DWORD dwPriority;
DWORD dwUnknown2;
SYSTEMTIME stSubmitTime;
DWORD dwUntilTime;
DWORD dwSizeSPL; //Size of SPL File
DWORD dwSizeSecurityInfo; //Size of SecurityInfo
DWORD offSecurityInfo; //Offset of SECURITY_DESCRIPTOR
DWORD dwUnknown3;
DWORD dwUnknown4;
DWORD dwUnknown5;
DWORD offComputername; //Offset of WideChar+0
DWORD dwSPLSize2;
} SHADOW_FILE_HEADER_67, *PSHADOW_FILE_HEADER_67;

Mistakes:

1 C:\Dev-Cpp\Examples\WinMenu\teste.cpp `define' does not name a type
31 C:\Dev-Cpp\Examples\WinMenu\teste.cpp expected constructor, destructor, or type conversion before ',' token
31 C:\Dev-Cpp\Examples\WinMenu\teste.cpp expected constructor, destructor, or type conversion before ';' token

Thanks
Last edited on
The problem is not in the fragment you posted.
Helios, can you help myself? I am inexperienced in programming and it would like to turn this code.
I can't see anything wrong with the code you posted (assuming you've included windows.h). You'll have to post more code if you want help.
the complete code is in this link: http://www.undocprint.org/formats/winspool/shd
The first line of your code shows a "define" without the pound sign (#). It should be #define and not just define.
But when inserting #, it generates several mistakes.
Dears, I corrected the code. But do you possess an idea of how to read the files that are generated inside of the spool of the windows? C:\WINDOWS\system32\spool\PRINTERS

#include <windows.h>
#define SHD_SIGNATURE_67 $00004967 //Win2000/XP
typedef struct _SHADOW_FILE_HEADER_67 {
DWORD dwSignature; //SHD_SIGNATURE_67
WORD wStatus;
WORD wUnknown1;
DWORD dwJobID;
DWORD dwPriority;
DWORD dwUnknown2;
SYSTEMTIME stSubmitTime;
DWORD dwUntilTime;
DWORD dwSizeSPL; //Size of SPL File
DWORD dwSizeSecurityInfo; //Size of SecurityInfo
DWORD offSecurityInfo; //Offset of SECURITY_DESCRIPTOR
DWORD dwUnknown3;
DWORD dwUnknown4;
DWORD dwUnknown5;
DWORD offComputername; //Offset of WideChar+0
DWORD dwSPLSize2;
} SHADOW_FILE_HEADER_67, *PSHADOW_FILE_HEADER_67;
Topic archived. No new replies allowed.