hmod (HMODULE) - input

      The handle of the dynamic link module that is being referenced.

      This handle is provided in the DI register on entry to a module, or on the initialization entry to a dynamic link routine.

    cbName (ULONG) - input

      The maximum length of the buffer, in bytes, where the name will be stored.

    pch (PCHAR) - output

      The address of the buffer where the file specification of the module are returned.

    ulrc (APIRET) - returns

      Return Code.

      DosQueryModuleName returns one of the following values:

    • NO_ERROR 6
        ERROR_INVALID_HANDLE
      24
        ERROR_BAD_LENGTH
      For a full list of error codes, see Errors.


    [Back] [Next]