Changeset 152

Show
Ignore:
Timestamp:
03/06/08 00:57:29 (9 months ago)
Author:
yidabu
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/sys/win32/Registry.d

    r150 r152  
    7474   HKEY_DYN_DATA         = cast(HKEY) 0x80000006;  
    7575 
     76const int  
     77  REG_UNKOWN = 0,         
     78  REG_STRING = 1,           
     79  REG_EXPANDSTRING = 2,     
     80  REG_BINARY = 3,           
     81  REG_DWORD = 4,           
     82  REG_MULTISTRING = 7,  
     83  REG_QWORD = 11;   
     84 
    7685/** 
    7786 * Identifies the data type of a value in the registry. 
  • trunk/sys/win32/ie/IE.d

    r146 r152  
    355355//checkNavigate 
    356356 
    357 IDispatch waitDocument(IWebBrowser2 iwb2, bool discard = true, uint delay = 50) 
     357IDispatch waitDocument(IWebBrowser2 iwb2, bool discard = true, uint timeout = 5000) 
    358358{ 
    359359    if(!iwb2)  
     
    366366            tryRelease(pDoc); 
    367367    } 
     368    uint delay = 50; 
    368369     
    369370    // be sure navigate first 
    370     while(!pDoc
     371    for(uint i; i < timeout/delay; i++
    371372    { 
    372373        doEvents(delay);         
    373374        if ( iwb2.get_Document(pDoc) == S_OK )     
    374             break;     
     375            break;          
    375376    } 
    376377    return pDoc;