?? dllserver.cpp
字號:
#include "com/Com.h"#include "com/comerror.h"#include <assert.h>//static uint_least32_t lock_count = 0;static uint32_t lock_count = 0;FX_WINOLEAPI firtex::com::DllCanUnloadNowImpl(){ return ( lock_count > 0 ) ? FX_S_FALSE : FX_S_OK;}FX_WINOLEAPI firtex::com::DllLockServerImpl( int32_t fLock ){ // need to add thread safety if ( fLock ) { ++lock_count; assert( lock_count != 0 ); } else { assert( lock_count != 0 ); --lock_count; } return FX_S_OK;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -