Changeset 85121 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Jul 8, 2020 7:33:26 PM (5 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostVideoInputDeviceImpl.cpp
r82968 r85121 119 119 120 120 /** @todo These typedefs must be in a header. */ 121 typedef DECLCALLBACK (int) FNVBOXHOSTWEBCAMADD(void *pvUser,122 const char *pszName,123 const char *pszPath,124 const char *pszAlias,125 uint64_t *pu64Result);121 typedef DECLCALLBACKTYPE(int, FNVBOXHOSTWEBCAMADD,(void *pvUser, 122 const char *pszName, 123 const char *pszPath, 124 const char *pszAlias, 125 uint64_t *pu64Result)); 126 126 typedef FNVBOXHOSTWEBCAMADD *PFNVBOXHOSTWEBCAMADD; 127 127 128 typedef DECLCALLBACK (int) FNVBOXHOSTWEBCAMLIST(PFNVBOXHOSTWEBCAMADD pfnWebcamAdd,129 void *pvUser,130 uint64_t *pu64WebcamAddResult);128 typedef DECLCALLBACKTYPE(int, FNVBOXHOSTWEBCAMLIST,(PFNVBOXHOSTWEBCAMADD pfnWebcamAdd, 129 void *pvUser, 130 uint64_t *pu64WebcamAddResult)); 131 131 typedef FNVBOXHOSTWEBCAMLIST *PFNVBOXHOSTWEBCAMLIST; 132 132 -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r84343 r85121 1844 1844 1845 1845 #ifdef DEBUG 1846 typedef DECLCALLBACKTYPE(void, FNTESTPRINTF,(const char *, ...)); 1846 1847 /** Simple unit test/operation examples for sanitiseMachineFilename(). */ 1847 static unsigned testSanitiseMachineFilename( DECLCALLBACKMEMBER(void, pfnPrintf)(const char *, ...))1848 static unsigned testSanitiseMachineFilename(FNTESTPRINTF *pfnPrintf) 1848 1849 { 1849 1850 unsigned cErrors = 0; -
trunk/src/VBox/Main/src-server/win/svcmain.cpp
r83794 r85121 97 97 98 98 /** Passed to CreateThread to monitor the shutdown event. */ 99 static DWORD WINAPI MonitorProc(void *pv) 99 static DWORD WINAPI MonitorProc(void *pv) RT_NOTHROW_DEF 100 100 { 101 101 CExeModule *p = (CExeModule *)pv; … … 594 594 static BOOL ShutdownBlockReasonCreateAPI(HWND hWnd, LPCWSTR pwszReason) 595 595 { 596 typedef DECLCALLBACKPTR_EX(BOOL, WINAPI, PFNSHUTDOWNBLOCKREASONCREATE,(HWND hWnd, LPCWSTR pwszReason)); 597 598 PFNSHUTDOWNBLOCKREASONCREATE pfn 599 = (PFNSHUTDOWNBLOCKREASONCREATE)GetProcAddress(GetModuleHandle(L"User32.dll"), "ShutdownBlockReasonCreate"); 600 AssertPtr(pfn); 601 596 602 BOOL fResult = FALSE; 597 typedef BOOL(WINAPI *PFNSHUTDOWNBLOCKREASONCREATE)(HWND hWnd, LPCWSTR pwszReason);598 599 PFNSHUTDOWNBLOCKREASONCREATE pfn = (PFNSHUTDOWNBLOCKREASONCREATE)GetProcAddress(600 GetModuleHandle(L"User32.dll"), "ShutdownBlockReasonCreate");601 AssertPtr(pfn);602 603 if (pfn) 603 604 fResult = pfn(hWnd, pwszReason); … … 611 612 static BOOL ShutdownBlockReasonDestroyAPI(HWND hWnd) 612 613 { 614 typedef DECLCALLBACKPTR_EX(BOOL, WINAPI, PFNSHUTDOWNBLOCKREASONDESTROY,(HWND hWnd)); 615 PFNSHUTDOWNBLOCKREASONDESTROY pfn 616 = (PFNSHUTDOWNBLOCKREASONDESTROY)GetProcAddress(GetModuleHandle(L"User32.dll"), "ShutdownBlockReasonDestroy"); 617 AssertPtr(pfn); 618 613 619 BOOL fResult = FALSE; 614 typedef BOOL(WINAPI *PFNSHUTDOWNBLOCKREASONDESTROY)(HWND hWnd);615 616 PFNSHUTDOWNBLOCKREASONDESTROY pfn = (PFNSHUTDOWNBLOCKREASONDESTROY)GetProcAddress(617 GetModuleHandle(L"User32.dll"), "ShutdownBlockReasonDestroy");618 AssertPtr(pfn);619 620 if (pfn) 620 621 fResult = pfn(hWnd);
Note:
See TracChangeset
for help on using the changeset viewer.