Blob Blame History Raw
#ifndef PTYCON_INIT_IMPL_H
#define PTYCON_INIT_IMPL_H
#include <ntapi/ntapi.h>
#include <ntapi/nt_atomic.h>
extern const ntapi_vtbl * ptyc_ntapi;
static inline int ptyc_init(void)
{
int32_t status;
ntapi_vtbl * pvtbl;
if ((status = ntapi_init(&pvtbl)))
return status;
at_locked_cas(
(intptr_t *)&ptyc_ntapi,
0,(intptr_t)pvtbl);
return 0;
}
#endif