Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: metadb::handle_create, win32_event (Read 3353 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

metadb::handle_create, win32_event

Just some things I was wondering about..

Quote
//! Returns metadb_handle object referencing specified location (attempts to find existing one, creates new one if doesn't exist).
   //! @param p_out Receives metadb_handle pointer.
   //! @param p_location Location to create metadb_handle for.
   //! @returns true on success, false on failure (rare).
   virtual void handle_create(metadb_handle_ptr & p_out,const playable_location & p_location)=0;

So there is no chance of failure now?

Code: [Select]
    //! Returns true when signaled, false on timeout
    static bool g_wait_for(HANDLE p_event,double p_timeout_seconds) {
        SetLastError(NO_ERROR);
        DWORD status = WaitForSingleObject(p_event,g_calculate_wait_time(p_timeout_seconds));
        switch(status) {
        case WAIT_FAILED:
            throw exception_win32(GetLastError());
        default:
            throw pfc::exception_bug_check();
        case WAIT_OBJECT_0:
            return false;
        case WAIT_TIMEOUT:
            return true;
        }
    }
The documentation here didn't look too right to me either ?
.

metadb::handle_create, win32_event

Reply #1
The latter is fixed in current SDK.
Microsoft Windows: We can't script here, this is bat country.