Microsoft KB Archive/319564

= PRB: RAS Calls and Error 632 (ERROR_INVALID_SIZE) =

Article ID: 319564

Article Last Modified on 7/11/2005

-

APPLIES TO

 Microsoft Platform Software Development Kit-January 2000 Edition, when used with:  Microsoft Windows XP Professional

 Microsoft Windows 2000 Standard Edition 

-



This article was previously published under Q319564





SYMPTOMS
When you run a remote access service (RAS) application that is built with the default target setting, the RAS application may stop responding, and you may receive error 632:

ERROR_INVALID_SIZE



CAUSE
Stand-alone builds assume that Windows XP (the 32-bit version) is the target platform when the following conditions exist:
 * The stand-alone build uses an exported makefile.
 * The stand-alone uses the Vcvars32.bat file to set up the build environment.
 * The stand-alone runs against the Platform SDK version from August 2001 or later.

<div class="resolution_section">

RESOLUTION
To use a makefile to build a project, use one of the following methods:
 * Use one of the predefined Platform SDK build environments (for example, the Build Environment tool).
 * Make sure that the required build environment variables (for example, APPVER, TARGETOS, and TARGETLANG) are properly defined.

The Windows.h file, which is included in the August 2001 version of the Platform SDK, contains the following lines of code:

The predefined Platform SDK build environment for Windows 2000 and Windows XP 64-bit Edition sets proper build environment variables for the intended target platforms.
 * 1) ifndef WINVER
 * 2) define WINVER 0x0501

<div class="status_section">

STATUS
This behavior is by design.

<div class="references_section">