[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Reading the name of the client using Wtsapi32.dll does not work on OE 11.7.2

  • Thread starter Thread starter Matt Gilarde
  • Start date Start date
Status
Not open for further replies.
M

Matt Gilarde

Guest
The ppBuffer and pBytesReturned parameters in the declaration of external procedure WTSQuerySessionInformationA must be INT64 if you're running on 64-bit OpenEdge. These parameters are pointer values and pointers are 64-bits wide in 64-bit processes. The crash is occurring because the value returned in the ppBuffer parameter is being truncated to 32 bits. I won't go into the technical details but this problem could potentially have happened with 11.6. It's almost guaranteed to happen with 11.7 due to changes in recent versions of Windows and a change in the compiler we use to build OpenEdge in 11.7.

Continue reading...
 
Status
Not open for further replies.
Back
Top