public extern static void dsn_task_code_set_threadpool(dsn_task_code_t code, dsn_threadpool_code_t pool);
public extern static dsn_task_code_t dsn_task_code_register(string name, dsn_task_type_t type, dsn_task_priority_t pri, dsn_threadpool_code_t pool);
public extern static void dsn_task_code_query(dsn_task_code_t code, out dsn_task_type_t ptype, out dsn_task_priority_t ppri, out dsn_threadpool_code_t ppool);
public extern static IntPtr dsn_threadpool_code_to_string(dsn_threadpool_code_t pool_code);
public extern static dsn_threadpool_code_t dsn_threadpool_code_from_string(string s, dsn_threadpool_code_t default_code);