Haven't found a suitable match yet but since I'm doing custom semaphores that use more general error codes I decided to use the originals for a different purpose, anyone think there might be an issue with this?
Code:
/* Never gonna use these for their intended purpose anyways so might as
* well use them as substitutes :) */
PAWERR_KEY_INVALID = ERROR_SEM_NOT_FOUND,
PAWERR_KEY_EXPIRED = ERROR_SEM_TIMEOUT,
PAWERR_KEY_REVOKED = ERROR_SEM_IS_SET,
PAWERR_KEY_REFUSED = ERROR_SEM_USER_LIMIT,
PAWERR_OWNER_DIED = ERROR_SEM_OWNER_DIED,