23.08.2019
Posted by 
Upgrade Error Wparam 100 Lparam 1002 Rating: 6,0/10 8696 reviews
Upgrade Error Wparam 100 Lparam 1002

Was anybody here able to find a solution for this error? If so, please share - there seem to be quite a few people with this problem (myself included!). Thanks for any help!

I know I'm being lazy here and I should trawl the header files for myself, but what are the actual types for LPARAM and WPARAM parameters? Are they pointers, or four byte ints? I'm doing some C# interop code and want to be sure I get it working on x64 systems.

Mark HeathMark Heath
37.1k25 gold badges111 silver badges177 bronze badges

5 Answers

LPARAM is a typedef for LONG_PTR which is a long (signed 32-bit) on win32 and __int64 (signed 64-bit) on x86_64.

WPARAM is a typedef for UINT_PTR which is an unsigned int (unsigned 32-bit) on win32 and unsigned __int64 (unsigned 64-bit) on x86_64.

CB BaileyCB BaileyUpgrade error wparam 100 lparam 1002 2
537k82 gold badges564 silver badges615 bronze badges

These typedefs go back to the 16-bit days. Originally, LPARAM was a long (signed 32-bit) and WPARAM was a WORD (unsigned 16-bit), hence the W and L. Due to the common practice of passing casted pointers as message parameters, WPARAM was expanded to 32 bits on Win32, and both LPARAM and WPARAM were expanded to 64 bits on Win64.

In C#, you should use IntPtr for LPARAM and UIntPtr for WPARAM.

Note that despite the LP prefix, LPARAM is not a far pointer to an ARAM.

dan04dan04
65.1k17 gold badges139 silver badges176 bronze badges
Upgrade Error Wparam 100 Lparam 1002

Lresult Callback Wndproc

LPARAM refers to a LONG_PTR and WPARAM refers to a UINT_PTR

On x86 they will be 4 bytes and on x64 they will be 8 bytes.

Wparam Win32

Brian R. BondyBrian R. Bondy
260k102 gold badges548 silver badges595 bronze badges
jpalecek

Upgrade Error Wparam 100 Lparam 1002 0

jpalecek
41.3k6 gold badges84 silver badges127 bronze badges

What you need my friend is http://www.pinvoke.net/

SerialSebSerialSeb

Not the answer you're looking for? Browse other questions tagged c#c++windows or ask your own question.

Download Adobe Reader 9 Offline Installer