Releasedc API Fails with Laststatus = 0xc000007c and Lasterror = 87 Error Messages

ID: Q246792


The information in this article applies to:
  • Microsoft Windows NT Server versions 4.0, 4.0 SP4
  • Microsoft Windows NT Workstation versions 4.0, 4.0 SP4
  • Microsoft Windows NT Server, Enterprise Edition versions 4.0, 4.0 SP4


IMPORTANT: The individual hotfix that is available is for Windows NT 4.0 Service Pack 4 only. Do not apply the individual hotfix to a computer running Windows NT 4.0 Service Pack 5. Applying Windows NT 4.0 Service Pack 6 to a computer running Windows NT 4.0 Service Pack 5 will resolve this problem.

SYMPTOMS

The Releasedc API fails to release a device context intermittantly, and you see the following error messages:

lasterror = 87 ERROR_INVALID_PARAMETER
laststatus = 0xc000007c STATUS_NO_TOKEN


RESOLUTION

To resolve this problem, obtain the latest service pack for Windows NT 4.0 or the individual hotfix.

  • For information on obtaining the latest service pack, please go to:
    http://www.microsoft.com/windows/servicepacks/

    -or-
    Q152734 How to Obtain the Latest Windows NT 4.0 Service Pack


  • For information on obtaining the individual hotfix, contact Microsoft Product Support Services. For a complete list of Microsoft Product Support Services phone numbers and information on support costs, please go to the following address on the World Wide Web:
    http://www.microsoft.com/support/supportnet/overview/overview.asp
    The English-language version of this fix should have the following file attributes or later:
    
       Date      Time                 Size    File name     Platform
       -------------------------------------------------------------
       08/04/99  01:37p               169,744 gdi32.dll     x86
       08/04/99  01:37p               326,416 user32.dll    x86
       07/28/99  11:21a             1,250,640 win32k.sys    x86
       08/04/99  01:37p               175,376 winsrv.dll    x86
    
       08/06/99  01:09p               307,984 gdi32.dll     Alpha
       08/06/99  01:09p               577,296 user32.dll    Alpha
       07/28/99  11:20a             2,071,888 win32k.sys    Alpha
       08/06/99  01:09p               316,176 winsrv.dll    Alpha 




STATUS

Microsoft has confirmed this to be a problem in Windows NT 4.0. This problem was first corrected in Windows NT 4.0 Service Pack 6.

Additional query words:

Keywords : kberrmsg kbbug4.00 kbfix4.00 NT4SP6Fix
Version : winnt:4.0,4.0 SP4
Platform : winnt
Issue type : kbbug


Last Reviewed: January 20, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.