Problem:
the pointer lpszQueryString retrieved by the MF function PC_ISAPI_GET_EXT_BLOCK retrieves
A null-terminated string that contains the query information. This is the part of the URL string that appears after the question mark (?). This is equivalent to the CGI variable QUERY_STRING.
Resolution:
use the MF Function "PC_ISAPI_GET_EXT_BLOCK"
...
working-storage section.
...
*> Enter additional working-storage items here
01 ext-block usage extension-control-block.
01 option-name pic x(255).
01 option-value pic x(255).
01 temp-1 pic 9(9) comp-5.
01 MSG-INFO pic x(60).
01 DWORDdisp pic 9(18).
local-storage section.
01 lengthQueryString DWORD.
linkage section.
01 lklpszmethod pic x(10).
01 lklpszquerystring pic x(100).
01 lklpszpathinfo pic x(100).
01 lklpszpathtranslated pic x(100).
01 lklpszcontenttype pic x(100).
...
linkage section.
01 lklpszmethod pic x(10).
01 lklpszquerystring pic x(100).
01 lklpszpathinfo pic x(100).
01 lklpszpathtranslated pic x(100).
01 lklpszcontenttype pic x(100).
...
PROCEDURE DIVISION.
...
process-business-logic section.
...
move length of extension-control-block to cbsize of ext-block
call "PC_ISAPI_GET_EXT_BLOCK" using ext-block
if return-code not = 0
display "Not ISAPI environment"
exit program
stop run
end-if
set address of lklpszmethod to lpszmethod
set address of lklpszquerystring to lpszquerystring
set address of lklpszpathinfo to lpszpathinfo
set address of lklpszpathtranslated to lpszpathtranslated
set address of lklpszcontenttype to lpszcontenttype
!!!!!!!! lpszQueryString
A null-terminated string that contains the query information. This is the part of the URL string that appears after the question mark (?). This is equivalent to the CGI variable QUERY_STRING.
!!!!!!!!
Microsoft URL giving detailed informations about the
EXTENSION_CONTROL_BLOCK Structure
http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/bef4d00f-29e3-4a0b-8d72-c9f23fde0e61.asp