Click here to Skip to main content
15,882,412 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer2-Apr-12 21:47
VCProgrammer2-Apr-12 21:47 
AnswerRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Jochen Arndt2-Apr-12 23:36
professionalJochen Arndt2-Apr-12 23:36 
AnswerRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Richard MacCutchan2-Apr-12 23:44
mveRichard MacCutchan2-Apr-12 23:44 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer3-Apr-12 0:00
VCProgrammer3-Apr-12 0:00 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Richard MacCutchan3-Apr-12 0:19
mveRichard MacCutchan3-Apr-12 0:19 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer3-Apr-12 0:22
VCProgrammer3-Apr-12 0:22 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Richard MacCutchan3-Apr-12 0:34
mveRichard MacCutchan3-Apr-12 0:34 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer3-Apr-12 0:37
VCProgrammer3-Apr-12 0:37 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Richard MacCutchan3-Apr-12 0:44
mveRichard MacCutchan3-Apr-12 0:44 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Jochen Arndt3-Apr-12 0:47
professionalJochen Arndt3-Apr-12 0:47 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer3-Apr-12 0:52
VCProgrammer3-Apr-12 0:52 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Jochen Arndt3-Apr-12 0:59
professionalJochen Arndt3-Apr-12 0:59 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer3-Apr-12 1:02
VCProgrammer3-Apr-12 1:02 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Jochen Arndt3-Apr-12 1:12
professionalJochen Arndt3-Apr-12 1:12 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer3-Apr-12 1:17
VCProgrammer3-Apr-12 1:17 
GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
Jochen Arndt3-Apr-12 1:31
professionalJochen Arndt3-Apr-12 1:31 
First check your general C++ code settings of your project. The structure alignment must be the default of 8 (compiler command line option /Zp8).

If this is OK, the alignment is changed somewhere in a header or source file using the #pragma pack() statement or including one of the Pshpack<n>.h files.

A candidate is the winsock2.h header file of the platform SDK delivered with VS 2003 that contains a bug (lines 24+):
C++
#if !defined(WIN32) && !defined(_WIN64)
#include <pshpack4.h>
#endif

Winsock2.h without the bug looks like this (from Server 2003 R2 SDK):
C++
#if !defined(WIN32) && !defined(_WIN64)
#include <pshpack4.h>
/* WIN32 can be defined between here and the required poppack
   so define this special macro to ensure poppack */
#define _NEED_POPPACK
#endif

GeneralRe: IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS returns error code 87 INVALID_PARAMETER Pin
VCProgrammer3-Apr-12 2:47
VCProgrammer3-Apr-12 2:47 
QuestionDuplicate Function - Linker Error LNK2005 Pin
Mike Certini2-Apr-12 9:30
Mike Certini2-Apr-12 9:30 
QuestionRe: Duplicate Function - Linker Error LNK2005 Pin
Richard MacCutchan2-Apr-12 21:25
mveRichard MacCutchan2-Apr-12 21:25 
QuestionCCommandLineInfo and parsing command line arguments. Pin
Maximilien2-Apr-12 3:47
Maximilien2-Apr-12 3:47 
AnswerRe: CCommandLineInfo and parsing command line arguments. Pin
Richard MacCutchan2-Apr-12 4:06
mveRichard MacCutchan2-Apr-12 4:06 
QuestionRe: CCommandLineInfo and parsing command line arguments. Pin
Maximilien2-Apr-12 4:34
Maximilien2-Apr-12 4:34 
AnswerRe: CCommandLineInfo and parsing command line arguments. Pin
Richard MacCutchan2-Apr-12 4:42
mveRichard MacCutchan2-Apr-12 4:42 
AnswerRe: CCommandLineInfo and parsing command line arguments. Pin
Jochen Arndt2-Apr-12 4:18
professionalJochen Arndt2-Apr-12 4:18 
QuestionTransparentBlt not showing background correctly Pin
Codling20202-Apr-12 3:39
Codling20202-Apr-12 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.