Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>function 5ah (90) create unique file . dos 3.0</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 5Ah (90)        Create Unique File                         . DOS 3.0

    Creates a unique filename, then opens that file in the specified
    directory.

       On entry:      AH         5Ah
                      CX         File attribute
                      DS:DX      Pointer to path ending in \ (ASCIIZ string)

       Returns:       DS:DX      Pointer to filename (ASCIIZ string)
                      AX         Error code, if CF is set

       Error codes:   3          Path not found
                      5          Access denied

                      Call Function 59h for extended error code information.

       Network:       Requires Create access rights

  --------------------------------------------------------------------------

    Function 5Ah creates a file, and opens it in compatibility mode with
    Read/Write access. This function is often used to create temporary
    files, but note that DOS does not automatically delete the file when
    the program terminates.

       Notes:         The pathname must end with a backslash character.

                      Reserve 13 bytes following the pathname so that DOS
                      can append name of the newly created file.

See Also: 16h 3Ch 5Bh 59h

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson