{"author_url":"https://blog.hatena.ne.jp/potisan/","title":"Python&ctypes \u547c\u3073\u51fa\u3057\u5074\u306e\u78ba\u4fdd\u3057\u305fctypes.POINTER(Guid)\u306e\u89e3\u653e\u6e08\u307f\u30d0\u30b0","blog_url":"https://potisan-programming-memo.hatenablog.jp/","author_name":"potisan","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2025%2F04%2F07%2F015023\" title=\"Python&amp;ctypes \u547c\u3073\u51fa\u3057\u5074\u306e\u78ba\u4fdd\u3057\u305fctypes.POINTER(Guid)\u306e\u89e3\u653e\u6e08\u307f\u30d0\u30b0 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","description":"Power Management API\u3067\u3001LocalFree\u306e\u5fc5\u8981\u306a\u30e1\u30e2\u30ea\u4e0a\u306b\u78ba\u4fdd\u3055\u308c\u305fPOINTER(Guid())\u306econtents\u304b\u3089Guid\u3092\u53d6\u5f97\u3057\u305f\u5f8c\u3001\u305d\u306eGuid\u306e\u5024\u304c\u30e9\u30f3\u30c0\u30e0\u3067\u66f8\u304d\u63db\u308f\u308b\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u539f\u56e0\u306f\u3053\u306e\u65b9\u6cd5\u3067\u53d6\u5f97\u3057\u305fctypes.Structure\u304c\u5143\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u4fdd\u6301\u3057\u3066\u304a\u308a\u3001LocalFree\u306e\u5b9f\u884c\u3067\u305d\u306eGuid\u306e\u53c2\u7167\u5148\u304c\u7121\u52b9\u5316\u3055\u308c\u308b\u3053\u3068\u3067\u3057\u305f\u3002 \u89e3\u6c7a\u7b56\u306fGuid.from_buffer_copy(contents\u306eGuid)\u3067\u81ea\u524d\u306e\u30e1\u30e2\u30ea\u3092\u6301\u3064Guid\u3092\u4f5c\u308a\u3001\u305d\u3061\u3089\u3092\u4fdd\u6301\u3059\u308b\u3053\u3068\u3067\u3059\u3002 ctypes.c_int\u7b49\u3082ctypes.Structure\u3068\u540c\u3058\u30e1\u30e2\u30ea\u306b\u2026","type":"rich","published":"2025-04-07 01:50:23","categories":["Python 3","Windows"],"provider_name":"Hatena Blog","image_url":null,"url":"https://potisan-programming-memo.hatenablog.jp/entry/2025/04/07/015023","width":"100%","provider_url":"https://hatena.blog","height":"190","version":"1.0"}