def CertOpenStore(lpszStoreProvider, dwMsgAndCertEncodingType, hCryptProv, dwFlags, pvPara): if isinstance(lpszStoreProvider, int_types): lpszStoreProvider = gdef.LPCSTR(lpszStoreProvider) return CertOpenStore.ctypes_function(lpszStoreProvider, dwMsgAndCertEncodingType, hCryptProv, dwFlags, pvPara)
def CryptEncodeObjectEx(dwCertEncodingType, lpszStructType, pvStructInfo, dwFlags, pEncodePara, pvEncoded, pcbEncoded): lpszStructType = gdef.LPCSTR(lpszStructType) if isinstance( lpszStructType, int_types) else lpszStructType return CryptEncodeObjectEx.ctypes_function(dwCertEncodingType, lpszStructType, pvStructInfo, dwFlags, pEncodePara, pvEncoded, pcbEncoded)
def name(self): return gdef.LPCSTR(ctypes.addressof(self) + type(self).EaName.offset).value