00001 00008 #include "dkcUniqueID.h" 00009 #include "dkcStdio.h" 00010 00011 00012 #if 0 00013 00014 00015 //シングルリスト領域を得る。 00016 DKC_UNIQUE_ID * WINAPI dkcAllocUniqueID(void){ 00017 DKC_UNIQUE_ID *p; 00018 p = dkcAllocate(sizeof(DKC_UNIQUE_ID)); 00019 if(NULL==p) return NULL; 00020 00021 p->mStream = dkcAllocMemoryStream(sizeof(int) * 100); 00022 if(NULL==p->mStream) goto Error; 00023 00024 return p; 00025 Error: 00026 dkcFree(&p); 00027 return NULL; 00028 } 00029 00030 int WINAPI dkcFreeUniqueID(DKC_UNIQUE_ID **ptr){ 00031 if(NULL==ptr || *ptr==NULL || NULL==(*ptr)->mStream) 00032 return edk_ArgumentException; 00033 00034 dkcFreeMemoryStream(&((*ptr)->mStream)); 00035 return dkcFree(ptr); 00036 } 00037 00038 00039 int WINAPI dkcGetUniqueID(DKC_UNIQUE_ID *ptr){ 00040 00041 00042 00043 00044 } 00048 void dkcReturnUniqueID(DKC_UNIQUE_ID *ptr,int id); 00049 00050 #endif