Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Fala minha gente!
Estou com um probleminha aqui a mais de uma semana já.
Estou tentando utilizar parte de um projeto do CodeProject, no meu.
Tenho dois typedef:
typedef struct _IO_STATUS_BLOCK {
NTSTATUS Status;
ULONG Information;
} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
typedef enum _FILE_INFORMATION_CLASS {
FileDirectoryInformation=1,
FileFullDirectoryInformation,
FileBothDirectoryInformation,
FileBasicInformation,
FileStandardInformation,
FileInternalInformation,
FileEaInformation,
FileAccessInformation,
FileNameInformation,
FileRenameInformation,
FileLinkInformation,
FileNamesInformation,
FileDispositionInformation,
FilePositionInformation,
FileFullEaInformation,
FileModeInformation,
FileAlignmentInformation,
FileAllInformation,
FileAllocationInformation,
FileEndOfFileInformation,
FileAlternateNameInformation,
FileStreamInformation,
FilePipeInformation,
FilePipeLocalInformation,
FilePipeRemoteInformation,
FileMailslotQueryInformation,
FileMailslotSetInformation,
FileCompressionInformation,
FileCopyOnWriteInformation,
FileCompletionInformation,
FileMoveClusterInformation,
FileQuotaInformation,
FileReparsePointInformation,
FileNetworkOpenInformation,
FileObjectIdInformation,
FileTrackingInformation,
FileOleDirectoryInformation,
FileContentIndexInformation,
FileInheritContentIndexInformation,
FileOleInformation,
FileMaximumInformation
} FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS;
Mas, aqui começam os problemas. Quando eu mando compilar me aparecem dois erros de 'redefinition'!
error C2011: '_FILE_INFORMATION_CLASS' : 'enum' type redefinition
error C2011: '_IO_STATUS_BLOCK' : 'struct' type redefinition
Ok, apareceu esse erro, retirei o typedef e compilei. Mas ai deu erro por não ter o maldito typedef.
Se eu coloco dá redefinition, se eu tiro fala que não tem.
Outro erro que acontece é nesse outro typedef:
typedef struct _LSA_UNICODE_STRING {
USHORT Length;
USHORT MaximumLength;
PWSTR Buffer;Já tentei mudar o nome dos tipos ali mas não adiantou.
Estou usando o Visual Studio 2008 pra compilar. É só C++, não tem nada de .Net.
Não manjo muito de C++, mas já procurei em vários lugares e não encontrei muita coisa...
O redefition acho que pode ser alguma include em algum header que já tenha o typedef, mas não tenho certeza.
Se alguém puder me indicar o caminho...
Valeu!
Carregando comentários...