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



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
    • the operating system: Microsoft Windows XP
    • the operating system: Microsoft Windows 2000

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.

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:
#ifndef WINVER
#define WINVER 0x0501
				
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.

STATUS

This behavior is by design.

REFERENCES

For more information about how to use the Win32.mak file, visit the following Microsoft Web site:
For more information about your make utility, see the documentation for your third-party make utility.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbDSWNET2003Swept kbAPI kbnetwork kbprb KB319564