service (ULONG) - input

      The class of Logging Service:

    • Error logging
    • Event tracing

      All other values are reserved for future use.

    pOpenFile (PVOID) - in/out

      A pointer to the LogOpenFile parameter packet.

      For Error Logging, this is a pointer to a LOFREQUEST structure.

      For Event Tracing, this is a pointer to a LOFREQUESTTRACE structure.

    rc (APIRET) - returns

      Return code.

      LogOpenFile returns the following values:

      • NO_ERROR 
          ERROR_FILE_NOT_FOUND
        
          ERROR_DEVICE_IN_USE
        
          ERROR_DRIVE_LOCKED
        
          ERROR_OPEN_FAILED
        
          ERROR_LF_INVALID_SERVICE
        
          ERROR_LF_GENERAL_FAILURE
        
          INVALID_DATA_POINTER
        
          INVALID_LF_LOG_FILE_ID
        
          INVALID_LF_PACKET_REVISION_NUMBER
        
          INVALID_LF_FILENAME_LENGTH
        
          INVALID_LF_FILENAME_PTR
        
          INVALID_LF_PARM_PACKET_PTR
        
          INVALID_LF_LOG_FILE
        
          ERROR_LF_INVALID_PACKET_SIZE


        [Back: LogOpenFile Return Value - rc]
        [Next: LogOpenFile - Remarks]