Поделиться через


HSE_REQ_MAP_UNICODE_URL_TO_PATH

This support function allows your ISAPI extension to map a logical URL path to a physical path.

BOOL ServerSupportFunction(
      HCONN ConnID,
      DWORD dwServerSupportFunction,
      LPVOID lpvBuffer,
      LPDWORD lpdwSizeofBuffer,
      LPDWORD NULL
);

Parameters

  • ConnID
    Specifies the connection identifier of the client to which the response data should be sent.

  • dwServerSupportFunction
    The name of the Server Support function, which in this case must be set to HSE_REQ_MAP_UNICODE_URL_TO_PATH.

  • lpvBuffer
    Points to a buffer that should contain the URL to map upon entry, and will contain the physical path upon return.

  • lpdwSizeofBuffer
    Points to a buffer that will contain the size of the physical path pointed to by lpvBuffer upon return. If the physical path is too large for lpvBuffer, GetLastError returns ERROR_INSUFFICIENT_BUFFER, and lpdwSizeofBuffer contains the number of bytes needed to store the physical path so that you can make the call again with a larger lpvBuffer.

  • NULL
    Must be set to NULL.

Remarks

Examples of virtual-to-physical path mappings include:

  • /scripts is mapped to C:\InetPub\scripts

  • /scripts/oop is mapped to C:\InetPub\scripts\oop

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

Header: Declared in httpext.h.