Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#include "wdmsem.h"
#pragma PAGEDCODE
CSemaphore* CWDMSemaphore::create(VOID) { return new (NonPagedPool) CWDMSemaphore; }
#pragma PAGEDCODE
VOID CWDMSemaphore::initialize(IN PRKSEMAPHORE Semaphore, IN LONG Count, IN LONG Limit) { ::KeInitializeSemaphore (Semaphore,Count,Limit); }
#pragma PAGEDCODE
LONG CWDMSemaphore::release(IN PRKSEMAPHORE Semaphore,IN KPRIORITY Increment,IN LONG Adjustment,IN BOOLEAN Wait) { return ::KeReleaseSemaphore(Semaphore,Increment,Adjustment,Wait);
}
#pragma PAGEDCODE
LONG CWDMSemaphore::getState(IN PRKSEMAPHORE Semaphore) { return KeReadStateSemaphore(Semaphore); }
|