![]() |
|
Win64 - Add/delete SSL Certificate binding prompt error "Parameter is incorrect" - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Win64 - Add/delete SSL Certificate binding prompt error "Parameter is incorrect" (/thread-5702.html) |
Win64 - Add/delete SSL Certificate binding prompt error "Parameter is incorrect" - lmengyew - 01-02-2026 Hi, I am using IWHSysHeaders provided by the IntraWeb library to programmatically add and delete SSL certificate binding at runtime. The code works correctly on the Win32 platform; however, on Win64 it returns the error “The parameter is incorrect” when calling Code: HttpSetServiceConfigurationand Code: HttpDeleteServiceConfigurationI have attached a sample project for your reference. To reproduce the issue, please update the Host, CertStoreName and CertThumbprint values before running the program. Could you please advise what might be wrong with my implementation and how this issue can be resolved? RE: Win64 - Add/delete SSL Certificate binding prompt error "Parameter is incorrect" - islatislat - 01-16-2026 This is a known pitfall when moving HTTP API code from Win32 to Win64. The issue is not IntraWeb itself, but structure alignment and pointer sizes. On Win64, Code: HTTP_SERVICE_CONFIG_SSL_SETCode: HTTP_SERVICE_CONFIG_SSL_KEYCode: ULONG_PTR“The parameter is incorrect” usually means one of these:
If you want, you can paste your record declarations here and I can point out the exact Win64 mismatch. |